CVE-2026-24425

8.8 HIGH
Published: May 20, 2026 Modified: June 02, 2026
View on NVD

Description

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/twigphp/Twig/releases/tag/v3.26.0
Source: disclosure@vulncheck.com
Product Release Notes
https://github.com/twigphp/Twig/security/advisories/GHSA-2q52-x2ff-qgfr
Source: disclosure@vulncheck.com
Vendor Advisory

3 reference(s) from NVD

Quick Stats

CVSS v3 Score
8.8 / 10.0
EPSS (Exploit Probability)
0.7%
47th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

symfony