Skip to main content
← All vulnerabilities
CVE-2026-48808GHSA-H8VQ-8GPG-MHCG

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.27.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.27.0, the column filter passes the active sandbox state as a boolean but does not forward the current Source to SandboxExtension::checkPropertyAllowed(), so SourcePolicyInterface decisions are lost and a template author can read public or magic properties not allowed by the sandbox policy. This issue is fixed in version 3.27.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.27.0

  • twig/twigPackagist

    fixed in 3.27.0

References 3

GitHub · twigphp/Twig