craftcms/cms · Duplicate Advisory: Craft CMS: Incorrect path validation could potentially lead to path traversal
Affects craftcms/cmsSource GCVE Database
CVSS 6.2 Medium.
Data as of 7 Sep 2026, 21:08 UTC
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistcraftcms/cms | Affected
| 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.