CVE-2026-72783: Craft CMS path traversal in ensurePathIsContained

CVE-2026-72783 · Severity: medium · CVSS 6.2 · Published 2026-08-11

Craft CMS, a popular website content management system, contains a theoretical path traversal vulnerability in its file system handling. An attacker could potentially access files outside the intended directory. The vendor acknowledges no working exploit has been found, and the issue is a hardening recommendation rather than an active threat.

Technologies: craftcms/cms (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2026-72783 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-72783 being exploited in the wild.
How severe is CVE-2026-72783?
Medium severity, with a CVSS score of 6.2, published 11 August 2026.
Which products and versions are affected?
craftcms/cms (Packagist) ECOSYSTEM:introduced=5.0.0-RC1,fixed=5.10.6.
Is there a fix for CVE-2026-72783?
Yes. craftcms/cms (Packagist): upgrade to 5.10.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-72783 attacked?
It is attacked with local access, in a web application.
Am I affected by CVE-2026-72783?
Check whether you run craftcms/cms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • craftcms/cms (Packagist): upgrade to 5.10.6 or later
    composer require craftcms/cms:^5.10.6

Technical details

The ensurePathIsContained function of the Local file system class validates and normalizes file paths in the wrong order: validation occurs before normalization, allowing normalization to invalidate prior validation assumptions in a desanitization-style vulnerability. When a file is read via the getFileStream method, the path is validated, normalized, and then prefixed with the volume directory. An attacker could potentially craft a path that passes validation but resolves to a location outside the intended volume directory after normalization. The vulnerability requires local file system access and has not been demonstrated as exploitable in practice. Patches are available: 5.10.6 and 4.18.2.

Affected products

  • Craft CMS >= 5.0.0-RC1, < 5.10.6 and >= 4.0.0-RC1, < 4.18.2

Identifiers

  • CVE-2026-72783
  • GHSA-7hxc-f267-h5q7

Timeline

  • 2026-07-25: disclosed
  • 2026-08-11: advisory
  • 2026-08-11: patched: Versions 5.10.6 and 4.18.2 released

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.