← Vulnerability feed

Vulnerability record · CVE-2026-24425 · published 20 May 2026

CVE-2026-24425: Symfony twig vulnerability

Symfony · Twig

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.

8.7 CVSS 4.0 High EPSS 0.76% · top 46.6% CWE-693 · CWE-693
8.7CVSS 4.0 base score
0.76%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References
23 Jul 2026Last modified by 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.

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:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-24425 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-23614Symfony twig injection vulnerabilityTwig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attac…EPSS 8.2%9.8CVE-2018-13818Symfony twig code injection vulnerabilityTwig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. NOTE: the vendor points out that Twig itself is n…EPSS 6.9%8.7CVE-2026-46640Symfony twig code injection vulnerabilityTwig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker…EPSS 0.64%8.7CVE-2026-46633Symfony twig code injection vulnerabilityTwig is a template language for PHP. Prior to 3.26.0, Compiler::string() does not escape single quotes when a template name from a {% use %} tag is p…EPSS 0.69%8.6CVE-2024-45411Symfony twig vulnerabilityTwig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to byp…EPSS 0.85%7.7CVE-2026-46634Symfony twig vulnerabilityTwig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a synthesized __string_template…EPSS 0.62%7.5CVE-2022-39261Symfony twig path traversal vulnerabilityTwig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3 encounter an issue when the filesystem…EPSS 3.2%7.5CVE-2001-1537Symfony twig cleartext storage of sensitive data vulnerabilityThe default "basic" security setting' in config.php for TWIG webmail 2.7.4 and earlier stores cleartext usernames and passwords in cookies, which cou…EPSS 1.1%

Source: NIST National Vulnerability Database (record CVE-2026-24425), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.