Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-24425
VULNERABILITY

CVE-2026-24425

Common Vulnerabilities and Exposures record

HIGH

Summary

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.

Risk

CVSS
8.7
Severity
HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timeline

Published
May 20, 2026 14:16
Modified
Nov 17, 2026 23:17
Last observed
Nov 17, 2026 19:00

CWE

CWE-693

Affected product identifiers

cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*

References