CVE-2026-24425

EUVD-2026-31113
Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface that allows attackers with template rendering capabilities to pass arbitrary PHP callables to sort, filter, map, and reduce filters. Attackers can exploit the runtime check that fails to use the current template source to bypass sandbox restrictions and execute arbitrary code when the sandbox is enabled through a source policy rather than globally.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 52.2%
Affected Products (NVD)
VendorProductVersion
symfonytwig
2.16.0 ≤
𝑥
≤ 2.16.1
symfonytwig
3.9.0 ≤
𝑥
< 3.26.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php-twig
bookworm
3.5.1-1+deb12u3
fixed
bookworm (security)
3.5.1-1+deb12u3
fixed
bullseye
2.14.3-1+deb11u2
fixed
bullseye (security)
2.14.3-1+deb11u4
fixed
forky
3.28.0-1
fixed
sid
3.28.0-1
fixed
trixie
3.27.0-0+deb13u1
fixed
trixie (security)
3.27.0-0+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php-twig
focal
not-affected
jammy
not-affected
noble
not-affected
questing
ignored
resolute
Fixed 3.23.0-2ubuntu0.1~esm1
released