{"id":"CVE-2026-56394","aliases":["CVE-2026-56394","GHSA-c43v-4cr8-6mvp"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS - Authenticated Path Traversal in assets/icon Extension Parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nAn 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.\n\n### Details\nThe endpoint:\n- `src/controllers/AssetsController.php:1115-1123`\n- `actionIcon(string $extension)` calls `Assets::iconPath($extension)` and returns `sendFile($path, ...)`.\n\nIn `Assets::iconPath()`:\n- Path is built from user-controlled `extension`:\n  - `src/helpers/Assets.php:906-909`\n- If `file_exists($path)` is true, path is returned immediately:\n  - `src/helpers/Assets.php:910-912`\n\nValidation exists in `Assets::iconSvg()`:\n  - `preg_match('/^\\w+$/', $extension)`\n  - `src/helpers/Assets.php:927-931`\n\nHowever, that validation is only reached if `iconPath()` does **not** find a file.\nSo traversal payloads that resolve to existing `.svg` files bypass validation and are served by `sendFile()`.\n\n### Impact\n\n- Authenticated users can read local .svg files accessible to the application process.\n\n### References\n\n- https://github.com/craftcms/cms/commit/30f5f1a8d6edf0f3a00be72c42c78d9dc7d72d5c","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-06-21T13:27:02.445Z","modified":"2026-11-08T14:06:11.968Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"4.0.0-RC1","fixed":"4.17.7","status":"affected"},{"type":"semver","version":"4.17.7","status":"unaffected"},{"type":"semver","introduced":"5.0.0-RC1","fixed":"5.9.13","status":"affected"},{"type":"semver","version":"5.9.13","status":"unaffected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0-RC1","status":"affected","fixed":"4.17.7"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0-RC1","status":"affected","fixed":"5.9.13"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-c43v-4cr8-6mvp","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/commit/30f5f1a8d6edf0f3a00be72c42c78d9dc7d72d5c","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/craft-cms-authenticated-path-traversal-in-assets-icon-extension-parameter","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56394","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":["GCXWLP"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-23T13:34:08.737Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-56394","url":"https://www.cve.org/CVERecord?id=CVE-2026-56394","licence":"CVE Terms of Use","modified":"2026-11-08T14:06:11.968Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c43v-4cr8-6mvp","url":"https://github.com/advisories/GHSA-c43v-4cr8-6mvp","licence":"CC-BY-4.0","modified":"2026-08-06T22:00:56.630Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-56394","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56394","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:25.331Z","epss":{"score":0.00349,"percentile":0.30544,"date":"2026-12-01T12:00:22.000Z"}}