Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M
CVE-2026-46635Twig: Sandbox property allowlist bypass via the `column` filter (array_column on objects)
Medium 5.3
In plain English
A medium-severity incorrect authorization in Twig from twigphp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | php-twig | no fix listed | DEBIAN-CVE-2026-46635 |
| Debian:13 | php-twig | 3.27.0-0+deb13u1 | DEBIAN-CVE-2026-46635 |
| Debian:14 | php-twig | 3.26.0-1 | DEBIAN-CVE-2026-46635 |
| Packagist | twig/twig | 3.26.0 | GHSA-vcc8-phrv-43wj |
| Ubuntu:25.10 | php-twig | no fix listed | UBUNTU-CVE-2026-46635 |
| Ubuntu:26.10 | php-twig | no fix listed | UBUNTU-CVE-2026-46635 |
Affected products (as reported)
Weakness: CWE-863 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/twigphp/Twig/security/advisories/GHSA-vcc8-phrv-43wj x_refsource_CONFIRM
- https://github.com/twigphp/Twig/commit/f05c5011c25caf17de37614b7e04662022532ac4 x_refsource_MISC
- https://github.com/twigphp/Twig/releases/tag/v3.26.0 x_refsource_MISC