7.1high
Craft CMS - Authenticated Path Traversal in assets/icon Extension Parameter
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-c43v-4cr8-6mvp
Description
Craft CMS from 4.0.0-RC1 contains an authenticated path traversal vulnerability in the assets/icon endpoint where the extension parameter is not validated before file existence checks. Attackers can bypass extension validation by passing traversal sequences that resolve to existing SVG files, allowing local file read access.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| craftcms cms | from 4.0.0-RC1 before 4.17.7, from 5.0.0-RC1 before 5.9.13 Not affected: 4.17.7, 5.9.13 | CVE List |
| craftcms/cms (Packagist) | from 4.0.0-RC1 before 4.17.7, from 5.0.0-RC1 before 5.9.13 | GitHub Advisory Database |
All scores
| VulnCheck | 7.1high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Craft CMS from 4.0.0-RC1 contains an authenticated path traversal vulnerability in the assets/icon endpoint where the extension parameter is not validated before file existence checks. Attackers can bypass extension validation by passing traversal sequences that resolve to existing SVG files, allowing local file read access.
GitHub Advisory Database
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-1123actionIcon(string $extension)callsAssets::iconPath($extension)and returnssendFile($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:src/helpers/Assets.php:910-912
Validation exists in Assets::iconSvg():
preg_match('/^\w+$/', $extension)src/helpers/Assets.php:927-931
However, that validation is only reached if iconPath() does not find a file.
So traversal payloads that resolve to existing .svg files bypass validation and are served by sendFile().
Impact
- Authenticated users can read local .svg files accessible to the application process.
References
NVD (es)
Craft CMS desde 4.0.0-RC1 contiene una vulnerabilidad de salto de ruta autenticada en el endpoint assets/icon, donde el parámetro ’extension’ no se valida antes de las comprobaciones de existencia de archivos. Los atacantes pueden eludir la validación de la extensión pasando secuencias de salto que se resuelven en archivos SVG existentes, lo que permite el acceso de lectura de archivos locales.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-56394 changed 2026-11-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c43v-4cr8-6mvp changed 2026-08-06 | CC-BY-4.0 |
| NVD | CVE-2026-56394 changed 2026-10-25 | Public domain |