{"id":"CVE-2026-48805","published":"2026-07-14T21:26:34Z","modified":"2026-07-16T15:09:20Z","title":"Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`","vendor":"twigphp","product":"Twig","tier":"tail","description":{"text":"Twig is a template language for PHP. Prior to 3.27.0, deprecated internal wrappers in src/Resources/core.php do not forward the current sandbox state to CoreExtension::checkArrow(), arraySome(), and arrayEvery(), allowing legacy calls such as twig_array_some(), twig_array_every(), and twig_check_arrow_in_sandbox() to bypass sandbox callable restrictions. This issue is fixed in version 3.27.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00483,"percentile":0.42534,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b","tags":["x_refsource_MISC"]},{"url":"https://github.com/twigphp/Twig/releases/tag/v3.27.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":8.51},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"twigphp","affectedVersions":[{"vendor":"twigphp","product":"Twig","versions":["< 3.27.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-16T15:08:12.865390Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"twig/twig","vulnerableRanges":["<3.27.0"],"patched":["3.27.0"],"from":["GHSA-p42q-9prx-q5wq"],"provenance":"source"}],"summary":{"text":"The flaw is a sandbox state regression in the deprecated internal wrapper functions in src/Resources/core.php of Twig, a PHP template language. The wrappers fail to pass the current sandbox state to CoreExtension::checkArrow(), arraySome() and arrayEvery(), so legacy calls such as twig_array_some(), twig_array_every() and twig_check_arrow_in_sandbox() can bypass the sandbox's callable restrictions, with the attacker needing network access and low privileges (as the attack vector indicates) and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:53:36Z"},"euvd":{"id":"EUVD-2026-44511","exploited":false,"provenance":"source"}}