Vulnerabilities

CVE-2026-28697

Critical 9.1 CVSS 3.1

Description

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.

Description as published by the source, in English.

Key facts

Published
2026-03-04
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
1.1 % higher than 61 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
craftcms cms (Packagist) ≥ 4.0.0-RC1, < 4.17.0-beta.1 Affected
craftcms cms (Packagist) ≥ 5.0.0-RC1, < 5.9.0-beta.1 Affected
Craftcms Craft Cms 4.0.0 Affected
Craftcms Craft Cms 5.0.0 Affected
Craftcms Craft Cms > 4.0.0, < 4.17.0 Affected
Craftcms Craft Cms > 5.0.0, < 5.9.0 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities