Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32262: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in craftcms cms

0
Medium
VulnerabilityCVE-2026-32262cvecve-2026-32262cwe-22
Published: Mon Mar 16 2026 (03/16/2026, 18:57:46 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: cms

Description

CVE-2026-32262 is a path traversal vulnerability in Craft CMS versions 4. 0. 0-RC1 to before 4. 17. 5 and 5. 0. 0-RC1 to before 5. 9. 11. It affects the AssetsController->replaceFile() method, where an authenticated user with replaceFiles permission can inject '..

AI-Powered Analysis

AILast updated: 03/16/2026, 19:44:06 UTC

Technical Analysis

CVE-2026-32262 is a path traversal vulnerability classified under CWE-22, affecting Craft CMS, a popular content management system. The flaw exists in the AssetsController->replaceFile() method, specifically in how the targetFilename parameter is handled. This parameter is used unsanitized in a deleteFile() call before the system applies the Assets::prepareAssetName() sanitization during the save operation. An authenticated user with the replaceFiles permission can exploit this by injecting '../' sequences into the targetFilename, enabling deletion of arbitrary files within the same filesystem root. This means that files outside the intended asset directories can be deleted if they reside on the same filesystem, potentially affecting other volumes or folders. The vulnerability is limited to local filesystems and does not extend to remote or cloud storage. Exploitation requires authentication with replaceFiles permission but no additional user interaction or elevated privileges. The issue was present in Craft CMS versions from 4.0.0-RC1 up to but not including 4.17.5, and from 5.0.0-RC1 up to but not including 5.9.11. The vendor has patched this vulnerability in versions 4.17.5 and 5.9.11. The CVSS 4.0 vector indicates network attack vector, low attack complexity, no privileges required beyond replaceFiles permission, no user interaction, and limited impact on availability. No known exploits are currently reported in the wild.

Potential Impact

The primary impact of this vulnerability is unauthorized deletion of files within the same filesystem root by an authenticated user with replaceFiles permission. This can lead to loss of critical files, potential disruption of website content or functionality, and possible denial of service if essential files are deleted. While the vulnerability does not allow arbitrary file creation or modification, the ability to delete files outside the intended asset directories can compromise data integrity and availability. Organizations relying on Craft CMS for content management may face operational disruptions, data loss, and increased recovery costs. Attackers with insider access or compromised credentials could leverage this flaw to escalate damage. Since the vulnerability requires authentication with specific permissions, the risk is somewhat mitigated by proper access controls, but insider threats or compromised accounts remain a concern. The scope is limited to local filesystems, so environments using remote or cloud storage for assets are less affected. Overall, the impact is moderate but significant for organizations with sensitive or critical data stored on the same filesystem as Craft CMS assets.

Mitigation Recommendations

1. Upgrade Craft CMS to version 4.17.5 or later, or 5.9.11 or later, where the vulnerability is patched. 2. Restrict replaceFiles permission strictly to trusted and necessary users only, minimizing the number of accounts that can exploit this vulnerability. 3. Implement strong authentication mechanisms and monitor accounts with replaceFiles permission for suspicious activity. 4. Employ filesystem-level access controls and segmentation to isolate critical files and directories from the CMS asset directories, reducing the risk of unauthorized deletion. 5. Regularly back up website files and assets to enable rapid recovery in case of file deletion. 6. Conduct periodic security audits and code reviews to detect improper input sanitization or similar vulnerabilities. 7. Consider deploying runtime application self-protection (RASP) or web application firewalls (WAF) with custom rules to detect and block path traversal patterns in HTTP requests targeting the replaceFile endpoint. 8. Educate administrators and developers about the risks of path traversal and the importance of input validation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-11T15:05:48.397Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69b859da771bdb17492b2da3

Added to database: 3/16/2026, 7:28:26 PM

Last enriched: 3/16/2026, 7:44:06 PM

Last updated: 3/16/2026, 8:32:24 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses