Twig is a template language for PHP. Prior to 3.26.0, the Twig sandbox does not prevent a template from consuming CPU, memory, or wall-clock time, even under the strictest allow-list, allowing untrusted templates to cause resource exhaustion. This issue is addressed in version 3.26.0 by documenting that the sandbox does not protect against resource exhaustion.
CVE-2026-46627
This high-severity CVE scores 7.1 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.3%, top 75% 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
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.1
- EG Score
- 7.1(medium)
- EPSS
- 25.2%
- KEV
- Not listed
Published
July 14, 2026
Last Modified
July 15, 2026
Advisory Details (3)
Auto-updated Jul 15, 2026Sandbox does not protect against resource exhaustion · Advisory · twigphp/Twig · GitHub
https://github.com/twigphp/Twig/security/advisories/GHSA-923g-j88x-j34qv3.26.0
Patch available: twigphp/Twig v3.26.0
https://github.com/twigphp/Twig/releases/tag/v3.26.0commit 6bfa285e2f98 (twigphp/Twig)
Patch available: twigphp/Twig v3.26.0 (contains commit 6bfa285e2f98)
https://github.com/twigphp/Twig/commit/6bfa285e2f98651adb7aa480bf83a741d154f09fWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 5× in last 7d / 5× 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.
- 2026-07-15 22:36 UTCEG score recompute
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 10:05 UTCEG score recompute
- 2026-07-14 21:35 UTCEG score recompute
- 2026-07-14 21:35 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-400
Frequently asked(5)
What is CVE-2026-46627?
When was CVE-2026-46627 disclosed?
Is CVE-2026-46627 actively exploited?
What is the CVSS score of CVE-2026-46627?
How do I remediate CVE-2026-46627?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-46627
Is Your Infrastructure Affected by CVE-2026-46627?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.