CVE-2026-28697

CRITICALCVSS 9.1/10EPSS 1.07%

Last modified

CVE-2026-28697 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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). EPSS estimates a 1.07% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersions
CraftcmsCraft Cms> 4.0.0, < 4.17.0
CraftcmsCraft Cms> 5.0.0, < 5.9.0
CraftcmsCraft Cms4.0.0
CraftcmsCraft Cms5.0.0

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2026-28697?
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.
How severe is CVE-2026-28697?
CVE-2026-28697 has a CVSS score of 9.1/10 (CRITICAL severity). The EPSS model estimates a 1.07% probability of exploitation in the next 30 days.
How do I fix CVE-2026-28697?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-28697?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST