CVE-2026-48805 json
Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`
published 4mo ago modified 18d ago also EUVD-2026-44511 , GHSA-p42q-9prx-q5wq
- cvss
- 9.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist twig/twig 3.27.0
- symfony twig 3.27.0
- php-twig Debian 13 3.27.0-0+deb13u1
- php-twig Debian 14 3.27.0-1
debian advisories DEBIAN-CVE-2026-48805
Is CVE-2026-48805 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-48805 updated cvss 4.3
twig/twig: Twig: Sandbox bypass vulnerability via deprecated internal wrappers
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 3mo ago
Exploit prediction
0.48% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.3 | 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 |
| CNA | 4.0 | 5.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | twig/twig | <3.27.0 |
3.27.0 |
Affected products
- twigphp Twig
Classification
- Weakness
-
- CWE-693 Protection Mechanism Failure
References
-
github.com
/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b
patch
-
github.com
/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq
web, vendor-advisory
-
github.com
/twigphp/Twig/releases/tag/v3.27.0
web, release-notes
-
github.com
/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-48805.yaml
web
-
github.com
/twigphp/Twig
package
-
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
- GitHub Advisory GHSA-p42q-9prx-q5wq
- NVD CVE-2026-48805
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.