Description
Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-RC1 before 4.18.2 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The order of operations validates the path before normalization, so normalization could invalidate prior validation assumptions (a desanitization-style issue) and potentially resolve to files outside the intended volume directory. The vendor notes the issue is not directly exploitable and no exploitable scenario has been discovered; the fix is recommended for hardening.
Published: 2026-08-11
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in Craft CMS is a path traversal flaw that occurs in the ensurePathIsContained function of the Local file system class. Validation occurs before path normalization, allowing a path that passes validation to resolve to a location outside the intended volume after normalization. This could enable an attacker to access or modify files that should be protected, thereby compromising confidentiality or integrity. The vendor notes no direct exploit has been identified, but the theoretical design flaw enables potential unauthorized file access if an attacker can influence the path argument.

Affected Systems

Craft CMS, versions starting with 5.0.0‑RC1 through 5.10.5‑RC1 and 4.0.0‑RC1 through 4.18.1, are affected by this path traversal weakness.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is not available, and the issue is not listed in the CISA KEV catalog, implying a relatively low current exploitation probability. Nonetheless, because the flaw could allow access to files outside the intended directory, it poses a risk if an attacker can supply crafted file paths via user input or configuration. At present, no documented exploitation scenario exists, but the theoretical nature of the flaw warrants prompt remediation.

Generated by OpenCVE AI on August 11, 2026 at 23:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Craft CMS to version 5.10.6 or later, or to 4.18.2 or later, which contain the fix for the path traversal issue.
  • Apply the latest available security update or patch from Craft CMS, ensuring that the ensurePathIsContained function now validates after normalization.
  • If an immediate upgrade is not possible, review and tighten file system permissions so that the application only has access to the intended volume, and enforce input sanitization or whitelisting to prevent crafted paths from being accepted.

Generated by OpenCVE AI on August 11, 2026 at 23:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Description Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-RC1 before 4.18.2 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The order of operations validates the path before normalization, so normalization could invalidate prior validation assumptions (a desanitization-style issue) and potentially resolve to files outside the intended volume directory. The vendor notes the issue is not directly exploitable and no exploitable scenario has been discovered; the fix is recommended for hardening.
Title Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-22
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Craftcms Craft Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T19:51:58.185Z

Reserved: 2026-08-10T15:10:15.963Z

Link: CVE-2026-72783

cve-icon Vulnrichment

Updated: 2026-08-14T19:51:55.299Z

cve-icon NVD

Status : Deferred

Published: 2026-08-11T13:19:08.940

Modified: 2026-08-26T16:57:52.167

Link: CVE-2026-72783

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T01:00:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')