CVE-2026-48805
CVE-2026-48805 — Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.3
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.3 | CVSS 4.0 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-693
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1574.010Hijack Execution Flow: ServicesFile Permissions Weakness
- T1083File and Directory Discovery
- T1574.005Hijack Execution Flow: Executable Installer File Permissions Weakness
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /Resources/core.php.
References
3 on the record
- github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq
x_refsource_CONFIRM
- github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b
x_refsource_MISC
- github.com/twigphp/Twig/releases/tag/v3.27.0
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2013-2465 Oracle Java SE Unspecified VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2019-1003030 Jenkins Matrix Project Plugin Remote Code Execution VulnerabilityCVSS 9.9 · CISA KEV
- CVE-2025-40536 SolarWinds Web Help Desk Security Control Bypass VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-21513 MSHTML Framework Security Feature Bypass VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2026-21510 Windows Shell Security Feature Bypass VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2024-29988 Microsoft SmartScreen Prompt Security Feature Bypass VulnerabilityCVSS 8.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.