CVE-2026-28697: Craft Affected by Authenticated RCE via "craft.app.fs.write()" in Twig Templates
craftcms · cms
Affected: craftcms cms · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 68% of scored CVEs
DescriptionCVE.org
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.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- craftcms · cms>= 5.0.0-RC1, < 5.9.0-beta.1; >= 4.0.0-RC1, < 4.17.0-beta.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Weakness
- Improper Neutralization of Special Elements Used in a Template Engine · Command and Code Injection
- Vendor
- craftcms
- Published
- March 2026
CoverageNo articles yet
No CyberSIXT article names CVE-2026-28697 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-1336cwe.mitre.org
- github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68xgithub.com
- github.com/craftcms/cms/pull/18216github.com
- github.com/craftcms/cms/pull/18219github.com
- github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f3637143github.com