CVE-2026-24425
High 8.7No known exploitationFix status unknownTitle not yet published
Record last updated
CVSS score
8.7
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
0.8%
Higher than 56% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
None
Not in the KEV catalog
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.
Weakness: CWE-693
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| symfony | twig | from 2.16.0 up to and including 2.16.1 | Not documented | NIST NVD |
| symfony | twig | from 3.9.0 before 3.26.0 | 3.26.0 | NIST NVD |
Timeline
- No dated events documented yet.
Vendor guidance and references
- https://github.com/twigphp/Twig/releases/tag/v3.26.0 (opens in a new tab)product, release notes
- https://github.com/twigphp/Twig/security/advisories/GHSA-2q52-x2ff-qgfr (opens in a new tab)vendor advisory
- https://www.vulncheck.com/advisories/twig-x-x-sandbox-bypass-via-sourcepolicyinterface (opens in a new tab)third party advisory