LowGHSA-7hxc-f267-h5q7
Craft CMS: Incorrect path validation could potentially lead to path traversal
Affected versions
5.0.0-RC1 to before 5.10.6, 4.0.0-RC1 to before 4.18.2 - fixed in 5.10.6Details
The `ensurePathIsContained` function of the `Local` file system class is theoretically vulnerable to path traversal, although no exploitable scenario has been discovered. When a file is read, an `Asset` object uses the `getFileStream` method of the `Volume` where the asset file is stored, which in turn uses the `getFileStream` method of the file system class used by that `Volume`. For the `Local` file system, this function returns a stream to a file on the local disk after verifying and creating the correct file path. The file path is constructed by first validating the path and then adding
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-72783
- https://github.com/craftcms/cms/security/advisories/GHSA-7hxc-f267-h5q7
- https://nvd.nist.gov/vuln/detail/CVE-2026-72783
- https://github.com/craftcms/cms/commit/a8425b6c707335e42c35ee2aaf03af50ea4a494d
- https://github.com/craftcms/cms/commit/bd6b9c175b4892e042e8a03760c39b0e94c4c7d6
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/releases/tag/4.18.2
- https://github.com/craftcms/cms/releases/tag/5.10.6
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected