Intel

AIKIDO-2026-726718

craftcms/cms is vulnerable to Path Traversal

Path TraversalGHSA-7hxc-f267-h5q7 Published 3 days ago

20

Low Risk

This Affects:

PHPcraftcms/cms
4.0.0 - 4.18.1
Fixed in 4.18.2
5.0.0 - 5.10.5
Fixed in 5.10.6
Are you affected? Scan for Free

TL;DR

The path-containment check in Craft CMS's local file system validates a path before normalizing it and prepending the volume prefix. Because normalization happens after validation, the assumptions made during validation can be invalidated when resolving asset file streams, creating a theoretical path-traversal condition. No exploitable scenario was demonstrated, but the ordering of validation and normalization is unsafe. The fix reorders the steps so the final resolved path is checked for containment.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

craftcms/cms is vulnerable to Path Traversal in versions 4.0.0 - 4.18.1 and 5.0.0 - 5.10.5.

How to fix this

Upgrade the craftcms/cms library to the patch version.