GHSA-v47q-jxvr-p68x · Severity: critical · Ecosystem: composer — Craft CMS Vulnerable to Authenticated RCE via "craft.app.fs.write()" in Twig Templates
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.
Conclusion & alert: CVE-2026-28697 is rated High Exploit Risk (65.1/100): CVSS Critical severity, with low exploitation likelihood (EPSS 0.16%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
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-03-21 | 0.50% | 0.16% | -0.34% |
| 2 | 2026-03-10 | 0.38% | 0.50% | +0.12% |
| 3 | 2026-03-06 | — | 0.38% | — |
Full EPSS history (4 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.4 | 4.0 | CRITICAL |
|
— | — | [email protected] |
| 9.1 | 3.1 | CRITICAL |
|
2.3 | 6.0 | [email protected] |
GHSA-v47q-jxvr-p68x · Severity: critical · Ecosystem: composer — Craft CMS Vulnerable to Authenticated RCE via "craft.app.fs.write()" in Twig Templates
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| craftcms | craft_cms | > 4.0.0, < 4.17.0 | cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
| craftcms | craft_cms | > 5.0.0, < 5.9.0 | cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:* |
| craftcms | craft_cms | 4.0.0 | cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:* |
| craftcms | craft_cms | 5.0.0 | cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:* |
| craftcms | craft_cms | 5.0.0 | cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197 | Patch |
| https://github.com/craftcms/cms/pull/18216 | Issue Tracking Patch |
| https://github.com/craftcms/cms/pull/18219 | Issue Tracking Patch |
| https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68x | Exploit Mitigation Patch Vendor Advisory |