Vulnerability Description
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.
Related Weaknesses (CWE)
References
- https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3
- https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq
- https://symfony.com/cve-2026-133767
FAQ
What is CVE-2026-133767?
CVE-2026-133767 is a documented vulnerability. 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 ...
How severe is CVE-2026-133767?
CVSS scoring is not yet available for CVE-2026-133767. Check NVD for updates.
Is there a patch for CVE-2026-133767?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.