Duplicate Advisory: Craft CMS: Incorrect path validation could potentially lead to path traversal
Description
Craft CMS versions 4.0.0-RC1 before 4.18.2 and 5.0.0-RC1 before 5.10.6 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The vulnerability arises because path validation occurs before normalization, which may allow paths to resolve outside the intended directory. The vendor states the issue is not directly exploitable and no exploit scenarios have been found. The fix is recommended for hardening purposes.
CVSS v3.1
Score 6.2medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
A path traversal weakness exists in Craft CMS's ensurePathIsContained function due to validation occurring prior to path normalization, potentially allowing paths to escape the intended volume directory. This desanitization-style issue affects versions >=4.0.0-RC1 before 4.18.2 and >=5.0.0-RC1 before 5.10.6. The vendor notes no direct exploitability or discovered exploit scenarios, recommending the fix primarily for hardening.
Potential Impact
The vulnerability could theoretically allow an attacker with local access to reference files outside the intended directory, potentially exposing sensitive files. However, no direct exploit scenario has been identified, and the vendor indicates the issue is not directly exploitable.
Mitigation Recommendations
Apply the vendor-recommended updates to Craft CMS versions 4.18.2 or later and 5.10.6 or later to harden the system against this theoretical path traversal issue. Since no exploit is known, the fix is precautionary.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9w6w-8x3c-hfqp
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9845baacd9273b496ae637
Added to database: 09/02/2026, 15:50:18 UTC
Last enriched: 09/07/2026, 21:08:09 UTC
Last updated: 10/04/2026, 00:13:10 UTC
Views: 65
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.