GHSA-2q52-x2ff-qgfr · Severity: high · Ecosystem: composer — Twig: Possible sandbox bypass when using a source policy
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.
Conclusion & alert: CVE-2026-24425 is rated Moderate Risk (51.9/100): CVSS High severity, with low exploitation likelihood (EPSS 0.68%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.10% | 0.68% | +0.58% |
| 2 | 2026-05-21 | — | 0.10% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.7 | 4.0 | HIGH |
|
— | — | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 9.9 | 3.1 | CRITICAL |
|
3.1 | 6.0 | [email protected] |
GHSA-2q52-x2ff-qgfr · Severity: high · Ecosystem: composer — Twig: Possible sandbox bypass when using a source policy
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2026-24425 unimportant priority: Debian including 1 source packages (php-twig), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2026-24425 |
ubuntu
|
medium | CVE-2026-24425 medium priority: Ubuntu including 1 source packages (php-twig), 6 status rows across 6 suites (focal, jammy, noble, questing, resolute, upstream): not-affected 3, released 2, needed 1. | https://ubuntu.com/security/CVE-2026-24425 |
| URL | Tags |
|---|---|
| https://github.com/twigphp/Twig/releases/tag/v3.26.0 | Product Release Notes |
| https://github.com/twigphp/Twig/security/advisories/GHSA-2q52-x2ff-qgfr | Vendor Advisory |
| https://www.vulncheck.com/advisories/twig-x-x-sandbox-bypass-via-sourcepolicyinterface | Third Party Advisory |