CVE-2026-72783 Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained

Medium 6.9 Published Updated

Craft CMS contains a theoretical path traversal flaw in file system validation that could allow reading files outside intended directories, though no direct exploitation is known.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-72783?

CVE-2026-72783 is a medium-severity path traversal vulnerability in craftcms cms, published on 11 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-22

Which versions are affected by CVE-2026-72783?

4 open source packages ship an affected version, including craftcms/cms.

PackageAffectedFixed in
craftcms/cms PackagistFrom 4.0.0-RC14.18.2
craftcms/cms PackagistFrom 4.0.0-RC14.18.2
craftcms/cms PackagistFrom 5.0.0-RC15.10.6
craftcms/cms PackagistFrom 5.0.0-RC15.10.6

How do I fix CVE-2026-72783?

Upgrade craftcms/cms to a fixed version for your release line: 4.18.2 or 5.10.6.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-72783 being exploited?

There is no known exploitation of CVE-2026-72783 in the wild and no public exploit code.

Sources

Also known as GHSA-7hxc-f267-h5q7.

Is CVE-2026-72783 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free