CVE-2026-24425

HIGH CVSS 4.0: 8.7 EPSS 0.76%
Updated Nov 18, 2026
Symfony
Parameter Value
CVSS 8.7 (HIGH)
Affected Versions 2.16.0 — 3.26.0
Fixed In 3.26.0
Type CWE-693
Vendor Symfony
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 2

Configuration From (including) Up to (excluding)
Symfony Twig
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
2.16.0 <= 2.16.1
Symfony Twig
cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*
3.9.0 3.26.0