ZeroDay Brief
CVE-2026-24425

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
Vendor advisory More from this vendor

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.

CWE-693

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.

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

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”