CVE-2026-48805
Twig is a template language for PHP. Prior to 3.27.0, deprecated …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq
- github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-48805.yaml
- github.com/twigphp/Twig/releases/tag/v3.27.0
- symfony.com/blog/cve-2026-48805-sandbox-state-regression-in-deprecated-internal-wrappers-i
- github.com/advisories/GHSA-p42q-9prx-q5wq
- github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b
- nvd.nist.gov/vuln/detail/CVE-2026-48805
- cve.org/CVERecord?id=CVE-2026-48805
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.