CVE-2026-133767Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression
When the parent of an embed tag was an expression other than a string or a variable, the sandbox didn't see that expression. The functions, filters and tests of the expression weren't checked against the policy, and neither were its conversions to strings. A sandboxed template allowed to use embed could therefore call any function, filter or test, and any __toString() method: {% embed 'leak_' ~ app_secret() %}{% endembed %} Method calls and property reads were not affected, since they're checked at runtime. The sandbox now checks the parent expression of embed like any other expression of the template.
What to do
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | php-twig | Fix pending | DEBIAN-CVE-2026-133767 | |
| Debian 13 | php-twig | Fix pending | DEBIAN-CVE-2026-133767 | |
| Debian 12 | php-twig | Fix pending | DEBIAN-CVE-2026-133767 |
What the vendor says
As published in the CVE record by Symfony, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- twig/twig: affected: before 3.31.1; fixed in
3.31.1
Vendor advisories:
- https://symfony.com/cve-2026-133767 (vendor-advisory)
- https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq (vendor-advisory)
- https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3 (patch)
References
- https://symfony.com/cve-2026-133767
- https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq
- https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.