Craft CMS versions >= 5.0.0-RC1 before 5.10.7 and >= 4.0.0-RC1 before 4.18.3 contain a remote code execution vulnerability in the Twig sandbox mechanism. Because Craft marks the ElementInterface as safe (via the AllowedInSandbox attribute) and the sandbox allowlisting extends to the entire class hierarchy (craft\base\Component up to yii\base\Component), an authenticated attacker with permission to access the control panel can render a malicious Twig template that abuses the yii\base\Component arbitrary function-call gadget to execute arbitrary code, even when the Twig sandbox is enabled via enableTwigSandbox().
CVE-2026-72781
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-08-11. a secondary CVSS source baseline 8.8; sources differ by 0.0.
- 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
- 8.8
- EG Score
- 8.8(high)
- EG Risk
- 40(Track)EG Risk 40/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 computedSeverity88% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 43%
- KEV
- Not listed
Published
August 11, 2026
Last Modified
August 11, 2026
Advisory Details (2)
Auto-updated Aug 11, 2026Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape | Advisories | VulnCheck
https://www.vulncheck.com/advisories/craft-cms-rc1-before-remote-code-execution-via-twig-sandbox-escapeAuthenticated RCE through Twig sandbox escape · Advisory · craftcms/cms · GitHub
https://github.com/craftcms/cms/security/advisories/GHSA-f5wm-88jv-g5hxVendor Advisories for CVE-2026-72781(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| craftcms/cms | 5.0.0 ... 5.9.9 (179 versions) | 5.10.7 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 33× in last 7d / 47× 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-08-21 04:03 UTCEG score recompute
- 2026-08-21 04:03 UTCGHSA enrichment
- 2026-08-20 22:56 UTCEPSS rescore
- 2026-08-20 17:14 UTCGHSA enrichment
- 2026-08-20 06:17 UTCGHSA enrichment
- 2026-08-19 19:23 UTCEG score recompute
- 2026-08-19 19:23 UTCGHSA enrichment
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-19 08:33 UTCGHSA enrichment
- 2026-08-18 21:39 UTCEG score recompute
- 2026-08-18 21:39 UTCGHSA enrichment
- 2026-08-18 13:49 UTCEPSS rescore
- 2026-08-18 13:49 UTCEPSS rescore
- 2026-08-18 10:38 UTCGHSA enrichment
- 2026-08-17 23:48 UTCEG score recompute
- 2026-08-17 23:48 UTCGHSA enrichment
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-17 12:58 UTCGHSA enrichment
- 2026-08-17 02:09 UTCGHSA enrichment
- 2026-08-16 15:19 UTCEG score recompute
- 2026-08-16 15:19 UTCGHSA enrichment
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 04:30 UTCEG score recompute
- 2026-08-16 04:30 UTCGHSA enrichment
Show 22 moreShow fewer
- 2026-08-16 02:15 UTCEPSS rescore
- 2026-08-15 17:41 UTCGHSA enrichment
- 2026-08-15 06:51 UTCEG score recompute
- 2026-08-15 06:51 UTCGHSA enrichment
- 2026-08-15 01:31 UTCEPSS rescore
- 2026-08-14 19:22 UTCGHSA enrichment
- 2026-08-14 08:33 UTCEG score recompute
- 2026-08-14 08:33 UTCGHSA enrichment
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 21:43 UTCGHSA enrichment
- 2026-08-13 10:54 UTCGHSA enrichment
- 2026-08-13 00:04 UTCEG score recompute
- 2026-08-13 00:04 UTCGHSA enrichment
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-12 13:15 UTCGHSA enrichment
- 2026-08-12 02:25 UTCGHSA enrichment
- 2026-08-11 15:35 UTCEG score recompute
- 2026-08-11 15:35 UTCGHSA enrichment
- 2026-08-11 14:32 UTCEG score recompute
- 2026-08-11 13:25 UTCEG score recompute
- 2026-08-11 12:37 UTCEG score recompute
- 2026-08-11 12:37 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-72781?
When was CVE-2026-72781 disclosed?
Is CVE-2026-72781 actively exploited?
What is the CVSS score of CVE-2026-72781?
How do I remediate CVE-2026-72781?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-72781
Is Your Infrastructure Affected by CVE-2026-72781?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.