{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133767","assignerOrgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","state":"PUBLISHED","assignerShortName":"Symfony","dateReserved":"2026-11-20T14:01:43.158Z","datePublished":"2026-11-24T13:07:50.411Z","dateUpdated":"2026-11-24T13:07:50.411Z"},"containers":{"cna":{"providerMetadata":{"orgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","shortName":"Symfony","dateUpdated":"2026-11-24T13:07:50.411Z"},"title":"Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression","datePublic":"2026-11-24T12:58:38.000Z","descriptions":[{"lang":"en","value":"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:\n\n{% embed 'leak_' ~ app_secret() %}{% endembed %}\n\nMethod calls and property reads were not affected, since they're checked at runtime.\n\nThe sandbox now checks the parent expression of embed like any other expression of the template.","supportingMedia":[{"type":"text/markdown","base64":false,"value":"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:\n\n```twig\n{% embed 'leak_' ~ app_secret() %}{% endembed %}\n```\n\nMethod calls and property reads were not affected, since they're checked at runtime.\n\nThe sandbox now checks the parent expression of `embed` like any other expression of the template."}]}],"affected":[{"vendor":"Twig","product":"twig/twig","collectionURL":"https://packagist.org","packageName":"twig/twig","repo":"https://github.com/twigphp/Twig","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.31.1","versionType":"semver"}]}],"problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-693","description":"CWE-693 Protection Mechanism Failure","type":"CWE"}]},{"descriptions":[{"lang":"en","cweId":"CWE-863","description":"CWE-863 Incorrect Authorization","type":"CWE"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"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","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"references":[{"url":"https://symfony.com/cve-2026-133767","name":"CVE-2026-133767","tags":["vendor-advisory"]},{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-fmp9-6wxr-cfmq","name":"GHSA-fmp9-6wxr-cfmq","tags":["vendor-advisory"]},{"url":"https://github.com/twigphp/Twig/commit/fe395ad247b8e6c6f34f39bc211119ecb11f80b3","tags":["patch"]}],"credits":[{"lang":"en","value":"Ivan Tse","type":"finder"},{"lang":"en","value":"Fabien Potencier","type":"remediation developer"}],"source":{"advisory":"GHSA-fmp9-6wxr-cfmq","discovery":"UNKNOWN"},"x_generator":{"engine":"symfony/ghsa-to-cve"}}}}