LowGHSA-c43v-4cr8-6mvp
Craft CMS has authenticated path traversal in `assets/icon`, allowing local `.svg` file read
Affected versions
4.0.0-RC1 to before 4.17.7, 5.0.0-RC1 to before 5.9.13 - fixed in 4.17.7Details
### Summary An authenticated path traversal in `assets/icon` allows local SVG file read by passing traversal sequences in the `extension` parameter. The issue is caused by file existence checks happening before extension validation. ### Details The endpoint: - `src/controllers/AssetsController.php:1115-1123` - `actionIcon(string $extension)` calls `Assets::iconPath($extension)` and returns `sendFile($path, ...)`. In `Assets::iconPath()`: - Path is built from user-controlled `extension`: - `src/helpers/Assets.php:906-909` - If `file_exists($path)` is true, path is returned immediately: -
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-56394
- https://github.com/craftcms/cms/security/advisories/GHSA-c43v-4cr8-6mvp
- https://nvd.nist.gov/vuln/detail/CVE-2026-56394
- https://github.com/craftcms/cms/commit/30f5f1a8d6edf0f3a00be72c42c78d9dc7d72d5c
- https://github.com/craftcms/cms
- https://www.vulncheck.com/advisories/craft-cms-authenticated-path-traversal-in-assets-icon-extension-parameter
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