CVE-2026-28697

CRITICAL EPSS 60.5%
Published Mar 4, 20263mo ago · Modified Jun 17, 20261w ago
9.4 CVSS 4.0
Critical
Find Similar
Published Mar 4, 2026 3mo ago
Last Modified Jun 17, 2026 1w ago

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.

CVSS Details

Base Score
9.4
Exploitability
Impact
Vector string
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network
Attack Complexity Low
Privileges Required High
User Interaction None
Scope X

Threat Intelligence

EPSS Exploit Probability
60.5% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-1336

Affected Products 8

VendorProductVersionRange
craftcmscraft_cms*>4.0.0  –  <4.17.0
craftcmscraft_cms*>5.0.0  –  <5.9.0
craftcmscraft_cms4.0.0any
craftcmscraft_cms4.0.0any
craftcmscraft_cms4.0.0any
craftcmscraft_cms4.0.0any
craftcmscraft_cms5.0.0any
craftcmscraft_cms5.0.0any

References 4

  • github.com https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197
    Patch
  • github.com https://github.com/craftcms/cms/pull/18216
    Issue TrackingPatch
  • github.com https://github.com/craftcms/cms/pull/18219
    Issue TrackingPatch
  • github.com https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68x
    ExploitMitigationPatchVendor Advisory

Remediation

  • github.com https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197
    Patch
  • github.com https://github.com/craftcms/cms/pull/18216
    Issue TrackingPatch
  • github.com https://github.com/craftcms/cms/pull/18219
    Issue TrackingPatch
  • github.com https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68x
    ExploitMitigationPatchVendor Advisory