CVE-2026-24425CWE-693

CVE-2026-24425

High · published May 20, 2026

CVSS v3.1
8.8
EPSS
1%
Percentile
54.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00758 · 54.7th percentile
Weakness
CWE-693 · Protection Mechanism Failure
Published
2026-05-20T18:16Z
Affected products (2)
ProductVersionsFixed in
symfony/twig≥ 2.16.0, ≤ 2.16.1—
symfony/twig≥ 3.9.0, < 3.26.03.26.0
References (3)
EPSS history
Timeline
  • 20 MAY 13:45Z
    Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface
    cvelistv5