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.
References
| Link | Resource |
|---|---|
| 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 |
Configurations
Configuration 1 (hide)
|
History
05 Mar 2026, 10:37
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:* cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:* cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:* cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:* cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:* cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:* |
|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 9.1 |
| References | () https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197 - Patch | |
| References | () https://github.com/craftcms/cms/pull/18216 - Issue Tracking, Patch | |
| References | () https://github.com/craftcms/cms/pull/18219 - Issue Tracking, Patch | |
| References | () https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68x - Exploit, Mitigation, Patch, Vendor Advisory | |
| First Time |
Craftcms
Craftcms craft Cms |
04 Mar 2026, 17:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-03-04 17:16
Updated : 2026-03-05 10:37
NVD link : CVE-2026-28697
Mitre link : CVE-2026-28697
CVE.ORG link : CVE-2026-28697
JSON object : View
Products Affected
craftcms
- craft_cms
CWE
CWE-1336
Improper Neutralization of Special Elements Used in a Template Engine
