← Biblioteca de vulnerabilidades

CVE-2026-42811

Inyección de código 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

  • No evaluar texto del usuario como código ni como plantilla; pasarlo siempre como dato a una plantilla fija.
  • Usar el modo seguro (sandbox) del motor de plantillas o de expresiones si existe.
  • Aplicar los parches del fabricante: muchas de estas fallas están en frameworks.

A qué afecta

  • Apache Software Foundation · Apache Polaris

    antes de 1.4.1

Qué es: Inyección de código

El programa evalúa como código algo que viene del usuario (eval, plantillas, expresiones), y el atacante ejecuta su propio código dentro de la aplicación.

Funciones como eval(), motores de plantillas (Jinja, Twig, Freemarker, Velocity) o lenguajes de expresiones (OGNL, SpEL, EL) interpretan texto como código. Si un dato del usuario llega ahí, el atacante ejecuta instrucciones con los permisos de la aplicación, lo que casi siempre termina en control del servidor.

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

Descripción oficial (en inglés)

In plain terms, Apache Polaris is supposed to issue short-lived GCS credentials that only work for one table's files, but a crafted namespace or table name can cause those credentials to work across the configured bucket instead. Apache Polaris builds Google Cloud Storage downscoped credentials by creating a Credential Access Boundary (CAB) with CEL conditions that are intended to restrict access to the requested table's storage path. The relevant CEL string is built from the bucket name and the table path. That table path is derived from namespace and table identifiers. In current code, that path appears to be inserted into the CEL expression without escaping. As a result, a namespace or table identifier containing a single quote and other URI-safe CEL fragments can break out of the intended quoted string and change the meaning of the CEL condition. In private testing against Polaris 1.4.0 on real Google Cloud Storage, it was confirmed that Polaris accepted a crafted identifier and returned delegated GCS credentials whose CEL path restriction had effectively collapsed. Those delegated credentials could then: - list another table's object prefix; - read another table's metadata control file (Iceberg metadata JSON); - create and delete an object under another table's object prefix; - and also list, read, create, and delete objects under an unrelated external prefix in the same bucket that was not part of any table path. That last point is important. The issue is not limited to "another table". In the confirmed setup, once Apache Polaris returned credentials for the crafted table, the path restriction inside the configured bucket was effectively gone. The practical effect is that temporary credentials for one crafted table can be broader than the table Polaris was asked to authorize, and can become effectively bucket-wide within the configured bucket. The current GCS testing used a Polaris principal with broad catalog privileges for setup. A separate least-privilege Polaris RBAC variant has not yet been tested on GCS. However, the storage-credential broadening behavior itself has been confirmed on GCS.