CVE-2026-48805
CRITICALTwig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/twigphp/Twig/security/advisories/GHSA-p42q-9prx-q5wq
X_Refsource_Misc x_refsource_misc
https://github.com/twigphp/Twig/commit/e235cae3a1d1e23edc24df4d675f18108c6b167b
X_Refsource_Misc x_refsource_misc
https://github.com/twigphp/Twig/releases/tag/v3.27.0
Scores
CVSS v3
9.1
EPSS
0.0027
EPSS Percentile
19.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
total
Details
CWE
CWE-693
Status
published
Products (2)
symfony/twig
< 3.27.0
twigphp/Twig
< 3.27.0
Published
Jul 14, 2026
Tracked Since
Jul 15, 2026