CVE-2026-133767
MEDIUM 5.3CVSS 4.0Sandbox 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.
- Published
- 24 Nov 2026
- Last modified
- 1 Dec 2026
- Assigned by
- b5aa5c7f-767d-4597-9c64-3ac08b8711c6
- NVD status
- Awaiting Analysis
- Weakness
- CWE-693CWE-863
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 (Secondary) | CVSS 4.0 | MEDIUM 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | Symfony | CVSS 4.0 | MEDIUM 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://packagist.org | twig/twig | < 3.31.1 | 3.31.1 |
References
- https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3 · patch
- https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq · vendor-advisory
- https://symfony.com/cve-2026-133767 · vendor-advisory
History
- 1 Dec 2026 17:18 UTC · NVD: updated (other details)
- 1 Dec 2026 17:09 UTC · CVE List: updated (other details)
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 24 Nov 2026)
- 25 Nov 2026 20:11 UTC · NVD: first stored (published 24 Nov 2026)