Skip to main content
← All vulnerabilities
CVE-2026-46635GHSA-VCC8-PHRV-43WJ

Twig: Sandbox property allowlist bypass via the `column` filter (array_column on objects)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.26.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Twig is a template language for PHP. Prior to 3.26.0, the column filter passes object arrays to PHP array_column(), which reads public and magic properties without reaching CoreExtension::getAttribute() or SandboxExtension::checkPropertyAllowed(), allowing an untrusted template author with column in allowedFilters to read properties that are not in the sandbox allowlist. This issue is fixed in version 3.26.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • twigphp Twig

    fixed in 3.26.0

  • twig/twigPackagist

    fixed in 3.26.0

References 3

GitHub · twigphp/Twig