Skip to main content
VulnerabilityPublished Updated

craftcms/cms · Duplicate Advisory: Craft CMS: Incorrect path validation could potentially lead to path traversal

Affects craftcms/cmsSource GCVE Database

0

CVSS 6.2 Medium.

Data as of 7 Sep 2026, 21:08 UTC

CVSS 3.1 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What to do

Affected software

ProductAffectedFixed in
Packagistcraftcms/cmsAffected
  • >=4.0.0-RC1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Apply the vendor-recommended updates to Craft CMS versions 4.18.2 or later and 5.10.6 or later to harden the system against this theoretical path traversal issue. Since no exploit is known, the fix is precautionary.

Description

Craft CMS versions 4.0.0-RC1 before 4.18.2 and 5.0.0-RC1 before 5.10.6 contain a theoretical path traversal weakness in the ensurePathIsContained function of the Local file system class. The vulnerability arises because path validation occurs before normalization, which may allow paths to resolve outside the intended directory. The vendor states the issue is not directly exploitable and no exploit scenarios have been found. The fix is recommended for hardening purposes.

References

Community reviews

Loading reviews…