{"id":"CVE-2026-32262","aliases":["CVE-2026-32262","GHSA-472v-j2g4-g9h2"],"related":[],"kind":"vulnerability","state":"published","title":"Craft CMS has a Path Traversal Vulnerability in AssetsController","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThis could allow an authenticated user with `replaceFiles` permission on one volume to delete files in other folders/volumes that share the same filesystem root.\n\nThis only affects local filesystems.\n\nUsers should update to Craft 4.17.5 or 5.9.11 to mitigate the issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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-&gt;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.","source":"nvd"}],"published":"2026-03-16T18:11:49.000Z","modified":"2026-06-17T10:35:26.770Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 4.0.0-RC1, < 4.17.5","status":"affected"},{"version":">= 5.0.0-RC1, < 5.9.11","status":"affected"}],"vendor":"craftcms","product":"cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0-RC1","status":"affected","fixed":"4.17.5"}],"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.11"}],"ecosystem":"Packagist","package":"craftcms/cms","purl":"pkg:composer/craftcms/cms","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0.1","fixed":"4.17.5"},{"status":"affected","introduced":"5.0.1","fixed":"5.9.11"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"5.0.0"},{"status":"affected","version":"5.0.0"}],"vendor":"craftcms","product":"craft_cms","cpe":"cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-472v-j2g4-g9h2","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/craftcms/cms/commit/c997efbe4c66c14092714233aeebff15cdbfcf11","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32262","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/craftcms/cms","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-17T15:21:57.373Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-32262","url":"https://www.cve.org/CVERecord?id=CVE-2026-32262","licence":"CVE Terms of Use","modified":"2026-03-17T15:22:08.875Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-472v-j2g4-g9h2","url":"https://github.com/advisories/GHSA-472v-j2g4-g9h2","licence":"CC-BY-4.0","modified":"2026-03-16T22:02:17.568Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-32262","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32262","licence":"Public domain","modified":"2026-06-17T10:35:26.770Z"}],"updatedAt":"2026-11-25T22:59:16.028Z","epss":{"score":0.00327,"percentile":0.27869,"date":"2026-12-01T12:00:22.000Z"}}