9.4

CVE-2026-28697

Exploit

Craft Affected by Authenticated RCE via "craft.app.fs.write()" in Twig Templates

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
CraftcmsCraft Cms Version > 4.0.0 < 4.17.0
CraftcmsCraft Cms Version > 5.0.0 < 5.9.0
CraftcmsCraft Cms Version4.0.0 Update-
CraftcmsCraft Cms Version4.0.0 Updaterc1
CraftcmsCraft Cms Version4.0.0 Updaterc2
CraftcmsCraft Cms Version4.0.0 Updaterc3
CraftcmsCraft Cms Version5.0.0 Update-
CraftcmsCraft Cms Version5.0.0 Updaterc1
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 1.07% 0.604
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
nvd@nist.gov 9.1 2.3 6
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
security-advisories@github.com 9.4 0 0
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
CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine

The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68x
Patch
Vendor Advisory
Exploit
Mitigation
https://github.com/craftcms/cms/pull/18216
Patch
Issue Tracking
https://github.com/craftcms/cms/pull/18219
Patch
Issue Tracking
https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197
Patch