CVE Explorer
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"cms","vendor":"craftcms","versions":[{"status":"affected","version":">= 5.0.0-RC1, < 5.9.0-beta.1"},{"status":"affected","version":">= 4.0.0-RC1, < 4.17.0-beta.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1d36b690d359b142308621f09ed18be12acf06748d755f2f76c0f72f5c5cbfd1 · sha256:ef0e4406f05e14d3… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":9.4,"baseSeverity":"CRITICAL","privilegesRequired":"HIGH","subAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1d36b690d359b142308621f09ed18be12acf06748d755f2f76c0f72f5c5cbfd1 · sha256:ef0e4406f05e14d3… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1d36b690d359b142308621f09ed18be12acf06748d755f2f76c0f72f5c5cbfd1 · sha256:ef0e4406f05e14d3… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1d36b690d359b142308621f09ed18be12acf06748d755f2f76c0f72f5c5cbfd1 · sha256:ef0e4406f05e14d3… · /containers/cna/references/3
{"name":"https://github.com/craftcms/cms/pull/18216","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/pull/18216"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1d36b690d359b142308621f09ed18be12acf06748d755f2f76c0f72f5c5cbfd1 · sha256:ef0e4406f05e14d3… · /containers/cna/references/1
{"name":"https://github.com/craftcms/cms/pull/18219","tags":["x_refsource_MISC"],"url":"https://github.com/craftcms/cms/pull/18219"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1d36b690d359b142308621f09ed18be12acf06748d755f2f76c0f72f5c5cbfd1 · sha256:ef0e4406f05e14d3… · /containers/cna/references/2
{"name":"https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68x","tags":["x_refsource_CONFIRM"],"url":"https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68x"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1d36b690d359b142308621f09ed18be12acf06748d755f2f76c0f72f5c5cbfd1 · sha256:ef0e4406f05e14d3… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.