# CVE-2026-48805: Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-06-30T18:41:30.000Z
- Modified: 2026-10-24T22:10:00.210Z
- Also known as: GHSA-p42q-9prx-q5wq
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- twigphp Twig: < 3.27.0
- twig/twig (Packagist): before 3.27.0
- symfony twig: before 3.27.0

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: rating Low
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq> (vendor-advisory, web)
- <https://github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b> (patch)
- <https://github.com/twigphp/Twig/releases/tag/v3.27.0> (release-notes, web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-48805.yaml> (web)
- <https://github.com/twigphp/Twig> (package)
- <https://symfony.com/blog/cve-2026-48805-sandbox-state-regression-in-deprecated-internal-wrappers-in-src-resources-core-php> (web)

## Sources

- CVE List: [CVE-2026-48805](https://www.cve.org/CVERecord?id=CVE-2026-48805), CVE Terms of Use, modified 2026-07-16
- GitHub Advisory Database: [GHSA-p42q-9prx-q5wq](https://github.com/advisories/GHSA-p42q-9prx-q5wq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48805](https://nvd.nist.gov/vuln/detail/CVE-2026-48805), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-48805 · Whole record: https://cve.day/CVE-2026-48805.json · Rebuilt by cve.day 2026-11-25T22:59:28.247Z
