CVE-2026-48805CWE-693

Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`

Medium · published July 14, 2026

CVSS v4.0
5.3
EPSS
0%
Percentile
40.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
Vector
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
EPSS
0.00483 · 40.7th percentile
Weakness
CWE-693 · Protection Mechanism Failure
Published
2026-07-14T21:26Z
EPSS history
Timeline
  • 14 JUL 21:26Z
    Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`
    cvelistv5