CVE-2026-28697: Vulnerability in Craft Cms
Critical. 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.
Packagist, CWE-1336
- Exploitation
- None confirmed
- Severity
- 9.4 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-v47q-jxvr-p68x
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- Weakness
- CWE-1336
- Published
- 3 Mar 2026
- Last change
- 17 Jun 2026
- Ecosystem
- Packagist
Affected products
Affected versions and the first fixed release
- Craft Cms After 4.0.0 before 4.17.0; After 5.0.0 before 5.9.0; Versions 4.0.0, 5.0.0. Fixed in 4.17.0, 5.9.0
Affected packages
Vulnerable version ranges and fixed releases
- craftcms/cms Packagist, Affected from 5.0.0-RC1 before 5.9.0-beta.1. Fixed in 5.9.0-beta.1
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes
- github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197
- github.com/craftcms/cms/pull/18216
- github.com/craftcms/cms/pull/18219
Related
- Craft Cms vulnerabilities Recent advisories, watch this product