CVE-2026-46635
Published:June 01, 2026
Updated:June 01, 2026
Description The "column" filter passes its input straight to PHP's native "array_column()". When the array elements are objects, "array_column()" reads "$obj->$name" (and "$obj->$index") directly, including invoking "__get"/"__isset". Because this property read happens entirely in PHP native code and never reaches "CoreExtension::getAttribute()", "SandboxExtension::checkPropertyAllowed()" is never consulted. An untrusted template author with "column" in their "allowedFilters" list can therefore read any public or magic property of any object reachable in the render context, regardless of the "SecurityPolicy" "allowedProperties" list. This is a variant of CVE-2024-51755 / GHSA-jjxq-ff2g-95vh that the "ArrayAccess"-focused fix did not cover. Resolution The "column" filter now routes object property reads through the sandbox-aware attribute accessor so the property allowlist is enforced. Credits Twig: would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.
Affected Packages
https://github.com/twigphp/Twig.git (GITHUB):
Affected version(s) >=v0.9.0 <v3.26.0Fix Suggestion:
Update to version v3.26.0twig/twig (PHP):
Affected version(s) >=v0.9.0 <v3.26.0Fix Suggestion:
Update to version v3.26.0twig/twig (PHP):
Affected version(s) >=dev-ci-fix <v3.26.0Fix Suggestion:
Update to version v3.26.0Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
HIGH
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
2.7
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Incorrect Authorization