PoC Monitor
← All CVEs
CVE-2026-24425published 20 May 2026 13:45 UTCData: JSON · API

Twigphp Twig

Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.9critical · scored by NVD · CWE-693
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

twigphp Twig
  • >= 3.9.0, < 3.26.0
  • 2.16.0

Fixed in 3.26.0

Mitigation

Upgrade Twig to 3.26.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published20 May 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.