{"id":"CVE-2026-46639","summary":"Twig: Sandbox property and method bypass via object-destructuring assignment","details":"Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a sandboxed Twig template to read public properties or invoke public getters on objects passed to the template engine. This issue is fixed in version 3.26.0.","aliases":["GHSA-mm6w-gr99-p3jj"],"modified":"2026-07-17T03:46:10.018908015Z","published":"2026-07-14T21:13:42.321Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46639.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-693"]},"references":[{"type":"WEB","url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46639.json"},{"type":"ADVISORY","url":"https://github.com/twigphp/Twig/security/advisories/GHSA-mm6w-gr99-p3jj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46639"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/twigphp/twig","events":[{"introduced":"a6769aefb305efef849dc25c9fd1653358c148f0"},{"fixed":"1fcae487b180d78e6351f4e0afa91f9eab96a2bc"}],"database_specific":{"cpe":"cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.24.0"},{"fixed":"3.26.0"}],"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"]}}],"versions":["v3.25.0","v3.24.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46639.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"}]}