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 PH…
- CVSS
- 9.9Critical
- Chance of exploitation (EPSS)
- 0.76%
- Published
- May 20, 2026
- In the news
- Not yet
What to do
A critical security flaw in Symfony Twig that can be attacked over the network by someone with an account. No attacks are reported yet, but patch it soon.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 3.26.0
Affected versions
- Symfony Twig
- 2.16.0 to through 2.16.1; 3.9.0 to before 3.26.0
- Twig
- 2.16.*; 3.9.0 to before 3.26.0
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.
Affected products
Get alerts for these →Timeline 3
Latest change: Tenable Cloud Security plugin 480740: Echo: matomo-5: security update to 5.14.3+e2 (Nov 18, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Nov 19, 2026
Wed, May 20, 2026
- CVECVE-2026-24425 published (CVSS 9.9)CVE Program · 14:16 UTC
References 3
- github.com Vendor Advisory /twigphp/Twig/security/advisories/GHSA-2q52-x2ff-qgfr
- github.com /twigphp/Twig/releases/tag/v3.26.0
- www.vulncheck.com /advisories/twig-x-x-sandbox-bypass-via-sourcepolicyinterface