CVE Vulnerabilities

CVE-2026-24425

Protection Mechanism Failure

Published: May 20, 2026 | Modified: Oct 08, 2026
CVSS 3.x
9.9
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

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.

Weakness

The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.

Affected Software

NameVendorStart VersionEnd Version
TwigSymfony2.16.0 (including)2.16.1 (including)
TwigSymfony3.9.0 (including)3.26.0 (excluding)
Php-twigUbuntuesm-apps/resolute*
Php-twigUbuntuquesting*
Php-twigUbunturesolute*
Php-twigUbuntuupstream*

References