{"id":"CVE-2026-46639","published":"2026-07-14T21:13:42Z","modified":"2026-07-15T12:54:34Z","title":"Twig: Sandbox property and method bypass via object-destructuring assignment","vendor":"twigphp","product":"Twig","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00394,"percentile":0.34506,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-mm6w-gr99-p3jj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":6.9},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"twigphp","affectedVersions":[{"vendor":"twigphp","product":"Twig","versions":[">= 3.24.0, < 3.26.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-15T12:54:25.800019Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"twig/twig","vulnerableRanges":[">=3.24.0, <3.26.0"],"patched":["3.26.0"],"from":["GHSA-mm6w-gr99-p3jj"],"provenance":"source"}],"summary":{"text":"Twig, the PHP template language from twigphp, has a flaw in its object-destructuring assignment in versions from 3.24.0 up to but not including 3.26.0, where the sandbox argument is hardcoded to false, so property and method policy checks are skipped. An attacker who already has write access to a sandboxed Twig template can exploit this over the network with low-privilege authentication and no user interaction to read public properties or call public getters on objects passed to the template engine.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:22Z"},"euvd":{"id":"EUVD-2026-44557","exploited":false,"provenance":"source"}}