Media

Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface`

  • Publicada: 30.06.2026
  • Actualizado: 11.10.2026 10:22

Description

This is a residual bypass of CVE-2026-46635 / GHSA-vcc8-phrv-43wj that only affects sandboxing enabled through SourcePolicyInterface (and not the regular global sandbox mode).

CoreExtension::column() receives the active sandbox state via the needs_is_sandboxed channel as a boolean $isSandboxed, but then routes the per-element property reads through SandboxExtension::checkPropertyAllowed() without forwarding the current Source. SandboxExtension::checkPropertyAllowed() re-evaluates isSandboxed($source) internally; with $source = null the SourcePolicyInterface-driven decision is lost, the method short-circuits to "not sandboxed", and the property allowlist is never consulted.

A template author whose sandbox is gated by a SourcePolicyInterface and who has column on their allowedFilters list can therefore read any public or magic property of any object reachable in the render context, regardless of SecurityPolicy::$allowedProperties. Direct attribute access to the same property is blocked, and the same payload is also blocked under global sandbox mode, which makes this a clear policy enforcement gap rather than a configuration issue.

Resolution

CoreExtension::column() no longer goes through the SandboxExtension wrapper for the property check. It calls the security policy directly: the per-source decision is already captured by the $isSandboxed boolean computed at the call site, so the property allowlist is enforced consistently for both global and source-policy sandboxing.

Credits

Twig would like to thank Vincent55 Yang for reporting the issue and Fabien Potencier for providing the fix.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer twig/twig < 3.27.0 3.27.0

Referencias

Puntuación CVSS -
Debilidad (CWE)
CWE-693, CWE-863
Plataforma
Composer
Paquete
twig/twig
Publicada
30.06.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-h8vq-8gpg-mhcg - CC BY 4.0

Historial de vulnerabilidades: twig/twig

Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (24) en el archivo
Entradas en total
24
Primera → última
02.2022 07.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Crítica 1
  • Alta 8
  • Media 8
  • Baja 7

Divulgaciones por año

  1. 2022: 4
  2. 2023: 0
  3. 2024: 4
  4. 2025: 1
  5. 2026: 15
Gravedad:
  1. Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface` esta entrada
    Media CVE-2026-48808 < 3.27.0 3.27.0
  2. Alta · 8.8 CVE-2026-24425 >= 2.16.0, <= 2.16.1, >= 3.9.0, < 3.26.0 3.26.0
  3. Crítica CVE-2026-46633 < 3.26.0 3.26.0
  4. Alta · 7.5 CVE-2022-39261 >= 1.0.0, < 1.44.7, >= 2.0.0, < 2.15.3, >= 3.0.0, < 3.4.3 1.44.7, 2.15.3, 3.4.3
  5. Alta · 8.1 CVE-2015-7809 < 1.20.0 1.20.0
  6. Alta · 8.8 CVE-2022-23614 >= 2.0.0, < 2.14.11, >= 3.0.0, < 3.3.8 2.14.11, 3.3.8

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.