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.
CVE-2026-24425
This critical-severity CVE scores 9.9 under NVD CVSS v3. EPSS exploit probability: 0.7%, top 49% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.9
- EG Score
- 9.9(medium)
- EG Risk
- 45(Track)EG Risk 45/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity99% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 50.7%
- KEV
- Not listed
Published
May 20, 2026
Last Modified
July 23, 2026
Advisory Details (3)
Auto-updated Jul 23, 2026Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface | Advisories | VulnCheck
https://www.vulncheck.com/advisories/twig-x-x-sandbox-bypass-via-sourcepolicyinterfacePossible sandbox bypass when using a source policy · Advisory · twigphp/Twig · GitHub
https://github.com/twigphp/Twig/security/advisories/GHSA-2q52-x2ff-qgfrv3.26.0
Patch available: twigphp/Twig v3.26.0
https://github.com/twigphp/Twig/releases/tag/v3.26.0Vendor Advisories for CVE-2026-24425(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | php-twig-string-extra (3.23.0-2ubuntu0.1~esm1) @ resolute | 2026-06-29 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| twig/twig | v3.10.0 ... v3.9.3 (32 versions) | 3.26.0 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(1)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 16× in last 7d / 67× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 175 total refreshes for this CVE.
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 03:07 UTCEG score recompute
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-21 15:24 UTCEPSS rescore
- 2026-07-21 15:24 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 02:29 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-17 22:59 UTCOSV refresh
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-14 17:20 UTCNVD updateCVSS v3 → 9.9 · severity → CRITICAL
- 2026-07-14 16:10 UTCMITRE cvelistV5CVSS v3 → 8.8 · severity → HIGH
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 20:28 UTCVendor advisory
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 08:00 UTCVendor advisory
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:07 UTCVendor advisory
- 2026-06-28 00:09 UTCVendor advisory
- 2026-06-27 20:13 UTCVendor advisory
- 2026-06-27 12:20 UTCVendor advisory
- 2026-06-27 07:26 UTCVendor advisory
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 23:30 UTCVendor advisory
- 2026-06-26 19:34 UTCVendor advisory
- 2026-06-26 03:48 UTCVendor advisory
- 2026-06-25 23:20 UTCVendor advisory
- 2026-06-25 19:22 UTCVendor advisory
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 03:50 UTCVendor advisory
- 2026-06-17 23:56 UTCVendor advisory
- 2026-06-17 20:03 UTCVendor advisory
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 15:34 UTCVendor advisory
- 2026-06-17 11:26 UTCVendor advisory
- 2026-06-17 04:01 UTCVendor advisory
- 2026-06-17 00:07 UTCVendor advisory
- 2026-06-16 20:13 UTCVendor advisory
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 10:47 UTCVendor advisory
- 2026-06-16 06:41 UTCVendor advisory
- 2026-06-16 02:48 UTCVendor advisory
- 2026-06-15 22:54 UTCVendor advisory
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-15 15:51 UTCVendor advisory
- 2026-06-15 06:02 UTCVendor advisory
- 2026-06-15 02:09 UTCVendor advisory
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-14 22:15 UTCVendor advisory
- 2026-06-14 18:22 UTCVendor advisory
- 2026-06-14 14:09 UTCVendor advisory
- 2026-06-14 10:11 UTCVendor advisory
Frequently asked(5)
What is CVE-2026-24425?
When was CVE-2026-24425 disclosed?
Is CVE-2026-24425 actively exploited?
What is the CVSS score of CVE-2026-24425?
How do I remediate CVE-2026-24425?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-24425
Is Your Infrastructure Affected by CVE-2026-24425?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.