← Biblioteca de vulnerabilidades

CVE-2026-42812

Control de acceso roto en Apache Polaris

Crítica9.9Publicada 4 de may de 2026 · Actualizada 26 de oct de 2026

En resumen

Un atacante remoto con una cuenta en el sistema podría tomar el control del sistema afectado sin que nadie haga nada.

Cómo se ataca

  • Se puede atacar por la red, incluso desde internet si el servicio está expuesto.
  • No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
  • Necesita una cuenta con permisos básicos en el sistema.
  • No necesita que nadie haga nada: ni abrir un archivo ni hacer clic.
  • Puede afectar a otros componentes además del vulnerable (por ejemplo, salir del navegador o de una máquina virtual).

Qué puede lograr el atacante

  • Leer información confidencial: datos, archivos o credenciales.
  • Modificar información o el sistema; en los casos graves, ejecutar sus propios programas.
  • Dejar el servicio o el equipo sin funcionar.

Cómo corregirla

  1. Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
  2. Aplique la actualización o la mitigación que indica el fabricante (enlaces abajo).
  3. Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.

Recomendaciones para este tipo de fallo

  • Aplicar la actualización del fabricante.
  • Para quien desarrolla: comprobar permisos en el servidor en cada función, negar por defecto y centralizar las reglas en un solo lugar.
  • Probar cada función con un usuario sin permisos.

A qué afecta

  • Apache Software Foundation · Apache Polaris

    antes de 1.4.1

Qué es: Control de acceso ausente o incorrecto

El sistema sabe quién es el usuario pero no comprueba qué puede hacer, y un usuario normal hace cosas de administrador o de otro usuario.

La pantalla oculta el botón de «administrar», pero la función del servidor no comprueba el rol. Basta con llamar directamente a la API. Es el problema número uno de la lista OWASP Top 10 de aplicaciones web.

Guía completa: dónde aparece, cómo se corrige y qué evitar

Descripción oficial (en inglés)

In Apache Iceberg, the table's metadata files are control files: they tell readers which data files belong to the table and which table version to read. `write.metadata.path` is an optional table property that tells Polaris where to write those metadata files. For a table already registered in a Polaris-managed catalog, changing only that property through an `ALTER TABLE`-style settings change (not a row-level `INSERT`, `SELECT`, `UPDATE`, or `DELETE`) bypasses the commit-time branch that is supposed to revalidate storage locations. The full persisted / credential-vending variant requires the affected catalog to have `polaris.config.allow.unstructured.table.location=true`, with `allowedLocations` broad enough to include the attacker-chosen target. `allowedLocations` is the admin-configured allowlist of storage paths that the catalog is allowed to use. Public project materials suggest that this flag is a real supported compatibility / layout mode, not just a contrived lab-only prerequisite. In that configuration, a user who can change table settings can cause Apache Polaris itself to write new table metadata to an attacker-chosen reachable storage location before the intended location-validation branch runs. If the later concrete-path validation also accepts that location, Polaris persists the resulting metadata path into stored table state. Later table-load and credential APIs can then return temporary cloud-storage credentials for the same location without revalidating it. In plain terms, Polaris can later hand out temporary storage access for the same attacker-chosen area. That attacker-chosen area does not need to be limited to the poisoned table's own files. If it is a broader storage prefix, another table's prefix, or, depending on configuration or provider behavior, even a bucket/container root, the resulting disclosure or corruption scope can extend to any data and metadata Polaris can reach there. The practical consequences are therefore similar to the staged-create credential-vending issue already discussed: data and metadata reachable in that storage scope can be exposed and, if write-capable credentials are later issued, modified, corrupted, or removed. Even before that later credential step, Polaris itself performs the metadata write to the unchecked location. So the core issue is not only later credential vending. The primary defect is that Polaris skips its intended location checks before performing a security- sensitive metadata write when only `write.metadata.path` changes. When `polaris.config.allow.unstructured.table.location=false`, current code review suggests the later `updateTableLike(...)` validation usually rejects out-of-tree metadata locations before the unsafe path is persisted. That may reduce the persisted / credential-vending variant, but it does not prevent the underlying defect: Polaris still skips the intended pre-write location check when only `write.metadata.path` changes.