Skip to main content

Duplicate Advisory: Craft CMS: Incorrect path validation could potentially lead to path traversal

0
Medium
Published: 08/11/2026 (08/11/2026, 15:32:39 UTC)
Source: GCVE Database
Product: craftcms/cms

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

Packagistghsa
craftcms/cms
Affected versions
>=4.0.0-RC1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 21:08:09 UTC

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.

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

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 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 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