Craft is a content management system (CMS). Prior to 4.17.0-beta.1 and 5.9.0-beta.1, an authenticated administrator can achieve Remote Code Execution (RCE) by injecting a Server-Side Template Injection (SSTI) payload into Twig template fields (e.g., Email Templates). By calling the craft.app.fs.write() method, an attacker can write a malicious PHP script to a web-accessible directory and subsequently access it via the browser to execute arbitrary system commands. This vulnerability is fixed in 4.17.0-beta.1 and 5.9.0-beta.1.
CVE-2026-28697
This critical-severity CVE scores 9.1 under NVD CVSS v3. EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). 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
- 9.1
- EG Score
- 9.1(low)
- 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 computedSeverity91% × 45%Exploitation0% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 61%
- KEV
- Not listed
Published
March 4, 2026
Last Modified
June 17, 2026
Advisory Details (4)
Auto-updated Jul 28, 2026Authenticated RCE via "craft.app.fs.write()" in Twig Templates · Advisory · craftcms/cms · GitHub
https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68xAllowedInSandbox attribute
Patch available: craftcms/cms 6.0.0-alpha.3 (PR #18219 merged 2026-01-07)
https://github.com/craftcms/cms/pull/18219Configurable allowlist-based Twig sandbox
Patch available: craftcms/cms 6.0.0-alpha.3 (PR #18216 merged 2026-01-06)
https://github.com/craftcms/cms/pull/18216commit 9dc2a4a3ec8e (craftcms/cms)
Patch available: craftcms/cms 6.0.0-alpha.3 (contains commit 9dc2a4a3ec8e)
https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197Weakness 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-08-01 04:16 UTCEPSS rescore
- 2026-07-30 16:27 UTCEPSS rescore
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-28 15:36 UTCEPSS rescore
- 2026-07-27 13:53 UTCEG score recompute
Related CVEs(same CWE)
Same CWE
10 shownCWE-1336
- CVE-2025-12107NVD 7.2EG 10.0CRITICAL
- CVE-2025-34300EG 10.0EPSS p99CRITICAL
- CVE-2025-53833EG 10.0EPSS p95CRITICAL
- CVE-2025-47916EG 10.0EPSS p100CRITICAL
- CVE-2025-46661EG 10.0CRITICAL
- CVE-2024-32651EG 10.0EPSS p100CRITICAL
- CVE-2025-14700EG 9.9EPSS p93CRITICAL
- CVE-2025-32461EG 9.9CRITICAL
- CVE-2025-23211EG 9.9CRITICAL
- CVE-2024-12583EG 9.9CRITICAL
Frequently asked(5)
What is CVE-2026-28697?
When was CVE-2026-28697 disclosed?
Is CVE-2026-28697 actively exploited?
What is the CVSS score of CVE-2026-28697?
How do I remediate CVE-2026-28697?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-28697
Is Your Infrastructure Affected by CVE-2026-28697?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.