5.3medium
Craft CMS has a Path Traversal Vulnerability in AssetsController
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.33% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-472v-j2g4-g9h2
Description
Craft CMS is a content management system (CMS). From version 4.0.0-RC1 to before version 4.17.5 and from version 5.0.0-RC1 to before version 5.9.11, the AssetsController->replaceFile() method has a targetFilename body parameter that is used unsanitized in a deleteFile() call before Assets::prepareAssetName() is applied on save. This allows an authenticated user with replaceFiles permission to delete arbitrary files within the same filesystem root by injecting ../ path traversal sequences into the filename. This could allow an authenticated user with replaceFiles permission on one volume to delete files in other folders/volumes that share the same filesystem root. This only affects local filesystems. This issue has been patched in versions 4.17.5 and 5.9.11.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| craftcms cms | >= 4.0.0-RC1, < 4.17.5, >= 5.0.0-RC1, < 5.9.11 | CVE List |
| craftcms/cms (Packagist) | from 4.0.0-RC1 before 4.17.5, from 5.0.0-RC1 before 5.9.11 | GitHub Advisory Database |
| craftcms craft_cms | from 4.0.0.1 before 4.17.5, from 5.0.1 before 5.9.11, 4.0.0, 5.0.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Craft CMS is a content management system (CMS). From version 4.0.0-RC1 to before version 4.17.5 and from version 5.0.0-RC1 to before version 5.9.11, the AssetsController->replaceFile() method has a targetFilename body parameter that is used unsanitized in a deleteFile() call before Assets::prepareAssetName() is applied on save. This allows an authenticated user with replaceFiles permission to delete arbitrary files within the same filesystem root by injecting ../ path traversal sequences into the filename. This could allow an authenticated user with replaceFiles permission on one volume to delete files in other folders/volumes that share the same filesystem root. This only affects local filesystems. This issue has been patched in versions 4.17.5 and 5.9.11.
GitHub Advisory Database
The AssetsController->replaceFile() method has a targetFilename body parameter that is used unsanitized in a deleteFile() call before Assets::prepareAssetName() is applied on save. This allows an authenticated user with replaceFiles permission to delete arbitrary files within the same filesystem root by injecting ../ path traversal sequences into the filename.
This could allow an authenticated user with replaceFiles permission on one volume to delete files in other folders/volumes that share the same filesystem root.
This only affects local filesystems.
Users should update to Craft 4.17.5 or 5.9.11 to mitigate the issue.
NVD (es)
Craft CMS es un sistema de gestión de contenido (CMS). Desde la versión 4.0.0-RC1 hasta antes de la versión 4.17.5 y desde la versión 5.0.0-RC1 hasta antes de la versión 5.9.11, el método AssetsController->replaceFile() tiene un parámetro de cuerpo targetFilename que se utiliza sin sanear en una llamada a deleteFile() antes de que se aplique Assets::prepareAssetName() al guardar. Esto permite a un usuario autenticado con permiso replaceFiles eliminar archivos arbitrarios dentro de la misma raíz del sistema de archivos inyectando secuencias de salto de ruta ../ en el nombre del archivo. Esto podría permitir a un usuario autenticado con permiso replaceFiles en un volumen eliminar archivos en otras carpetas/volúmenes que compartan la misma raíz del sistema de archivos. Esto solo afecta a los sistemas de archivos locales. Este problema ha sido parcheado en las versiones 4.17.5 y 5.9.11.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32262 changed 2026-03-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-472v-j2g4-g9h2 changed 2026-03-16 | CC-BY-4.0 |
| NVD | CVE-2026-32262 changed 2026-06-17 | Public domain |