---
id: CVE-2026-72783
title: >-
  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
summary: >-
  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 b…
severity: medium
cvss: 6.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-22
vendor: craftcms
product: cms
affected:
  - cms >= 5.0.0-RC1 < 5.10.6
  - cms >= 4.0.0-RC1 < 4.18.2
published: '2026-08-11'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:35.093'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72783'
references:
  - url: 'https://github.com/craftcms/cms/security/advisories/GHSA-7hxc-f267-h5q7'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/craft-cms-rc1-before-path-traversal-via-ensurepathiscontained
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-08-14T19:51:45.646583Z'
epss: 0.00197
epssPercentile: 0.08663
ingestedAt: '2026-10-08T16:52:14.713Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
