CVE-2026-48805

CRITICAL

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

Title source: cna
STIX 2.1

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.

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