πŸ” CVE Alert

CVE-2026-24425

HIGH 8.8

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

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

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 CWE-693
Vendor twigphp
Product twig
Published May 20, 2026
Last Updated May 20, 2026
Stay Ahead of the Next One

Get instant alerts for twigphp twig

Be the first to know when new high vulnerabilities affecting twigphp twig are published β€” delivered to Slack, Telegram or Discord.

Get Free Alerts β†’ Free Β· No credit card Β· 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

twigphp / Twig
3.9.0 < 3.26.0 2.16.*

References

NVD β†— CVE.org β†— EPSS Data β†—
github.com: https://github.com/twigphp/Twig/security/advisories/GHSA-2q52-x2ff-qgfr github.com: https://github.com/twigphp/Twig/releases/tag/v3.26.0 vulncheck.com: https://www.vulncheck.com/advisories/twig-x-x-sandbox-bypass-via-sourcepolicyinterface

Credits

NicolΓ² Ribaudo Fabien Potencier VulnCheck