Advisory record · GHSA-v47q-jxvr-p68x

Craft CMS Vulnerable to Authenticated RCE via "craft.app.fs.write()" in Twig Templates

CVSS 9.4 CriticalCriticalEPSS 0.012 · 68th percentile

Critical, because:

  • CVSS score 9.4: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 3 Mar 2026, 21:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
craftcms/cmsPackagist>=5.0.0-RC1, <5.9.0-beta.1 || >=4.0.0-RC1, <4.17.0-beta.15.9.0-beta.1, 4.17.0-beta.1
Identifiers
GHSA-v47q-jxvr-p68x · CVE-2026-28697 · PKSA-jqb9-4xf5-mdn1
Weakness (CWE)
CWE-1336
Published
3 Mar 2026
Updated
4 Mar 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Craft CMS (craftcms/cms) versions from 4.0.0-RC1 before 4.17.0-beta.1 and from 5.0.0-RC1 before 5.9.0-beta.1 are affected. An authenticated administrator with access to Twig template fields such as email templates, or to the System Messages utility, can inject a template payload that uses the craft.app.fs.write() method to write a PHP script to a web-accessible location, then run arbitrary system commands by requesting it. Upgrade to 4.17.0-beta.1 or 5.9.0-beta.1.

Written 3 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.4 Critical 4.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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.012, the 68th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:26 UTC First seen by agentprime
  2. 31 Oct 2026, 14:26 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.