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…

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

0
Low
Published: 08/06/2026 (08/06/2026, 21:36:11 UTC)
Source: GCVE Database
Product: craftcms/cms

Description

Craft CMS contains a theoretical path traversal vulnerability in the Local file system class's ensurePathIsContained function. The vulnerability arises from the order of validation and normalization of file paths, which could allow desanitization and potential path traversal. However, no exploitable scenario has been discovered, and the issue is considered low severity. A patch is available and recommended for hardening purposes.

CVSS v4.0

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N

Affected software

Packagistghsa
craftcms/cms
Affected versions
>=5.0.0-RC1 <5.10.6
Packagistghsa
craftcms/cms
Affected versions
>=4.0.0-RC1 <4.18.2

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: 08/07/2026, 07:01:11 UTC

Technical Analysis

The vulnerability involves the ensurePathIsContained function in the Local file system class of Craft CMS. When reading a file, the system validates the path, normalizes it, and then constructs the final file path by prefixing it with the volume's local directory path. The order of these operations can lead to a desanitization-style vulnerability where normalization invalidates prior validation assumptions, theoretically enabling path traversal. Despite this, no direct exploit has been identified. The issue is classified under CWE-22 (Path Traversal).

Potential Impact

No direct exploitation has been observed or demonstrated. The vulnerability is theoretical and does not currently allow unauthorized access or compromise. The impact is therefore low, but it could potentially lead to unauthorized file access if an exploit scenario is found.

Mitigation Recommendations

A patch is available for this vulnerability and applying it is recommended to harden the system. Since no exploit is known, immediate urgent action is not required, but updating to the fixed version will mitigate the theoretical risk.

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-7hxc-f267-h5q7
Osv Schema Version
1.4.0
Aliases
[]
Ecosystems
["Packagist"]
Database Specific Severity
LOW
Cvss Version
4.0

Threat ID: 6a7573bbbf8831d539d94185

Added to database: 08/07/2026, 05:57:15 UTC

Last enriched: 08/07/2026, 07:01:11 UTC

Last updated: 08/07/2026, 15:39:23 UTC

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