CVE-2026-28697
Craft CMS Vulnerable to Authenticated RCE via "craft.app.fs.write()" in Twig Templates
Summary
Remediation
Upgrade to the fixed version using your package manager.
composer require "craftcms/cms:^5.9.0-beta.1"
composer require "craftcms/cms:^4.17.0-beta.1"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| craftcms/cms | packagist | 5.0.0, 5.0.0-RC1, 5.0.1, 5.0.2 (+141 more) | 5.9.0-beta.1 |
| craftcms/cms | packagist | 4.0.0, 4.0.0-RC1, 4.0.0-RC2, 4.0.0-RC3 (+225 more) | 4.17.0-beta.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1336
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
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
References
- https://github.com/craftcms/cms/security/advisories/GHSA-v47q-jxvr-p68xWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-28697ADVISORY
- https://github.com/craftcms/cms/pull/18216WEB
- https://github.com/craftcms/cms/pull/18219WEB
- https://github.com/craftcms/cms/commit/9dc2a4a3ec8e9cd5e8c0d1129f36371437519197WEB
- https://github.com/craftcms/cmsPACKAGE
Frequently Asked Questions
- What is CVE-2026-28697?
- Craft CMS Vulnerable to Authenticated RCE via "craft.app.fs.write()" in Twig Templates This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-28697?
- CVE-2026-28697 affects craftcms/cms. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-28697 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2024-56145CRITICAL
Craft CMS has potential RCE when PHP `register_argc_argv` config setting is enabled
- CVE-2023-41892CRITICAL
Craft CMS Remote Code Execution vulnerability
- CVE-2026-55791CRITICAL
Craft CMS: Blind SSRF and Arbitrary JavaScript Injection via Host Header Poisoning in actionResourceJs
- CVE-2026-29069HIGH
Craft CMS has unauthenticated activation email trigger with potential user enumeration
- CVE-2026-25495HIGH
Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]`
- CVE-2026-72778HIGH
Craft CMS: Authenticated RCE via `condition.config` JSON cleanse bypass
- CVE-2026-32267HIGH
Craft CMS Vulnerable to Privilege Escalation/Bypass through UsersController->actionImpersonateWithToken()
- CVE-2025-68454MEDIUM
Craft CMS vulnerable to potential authenticated Remote Code Execution via Twig SSTI
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies