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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/twigphp/Twig/commit/f05c5011c25caf17de37614b7e04662022532ac4 Patch
- https://github.com/twigphp/Twig/security/advisories/GHSA-vcc8-phrv-43wj Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.3 · symfonyNVD modified 2026-10-24 22:10
Affected (CPE criteria) 1
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*