{"id":"CVE-2026-32262","published":"2026-03-16T18:57:46Z","modified":"2026-03-17T15:22:08Z","title":"Craft CMS has a Path Traversal Vulnerability in AssetsController","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00327,"percentile":0.26494,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-472v-j2g4-g9h2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/commit/c997efbe4c66c14092714233aeebff15cdbfcf11","tags":["x_refsource_MISC"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":5.3},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 4.0.0-RC1, < 4.17.5",">= 5.0.0-RC1, < 5.9.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-17T15:21:57.373140Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=4.0.0-RC1, <4.17.5",">=5.0.0-RC1, <5.9.11"],"patched":["4.17.5","5.9.11"],"from":["GHSA-472v-j2g4-g9h2"],"provenance":"source"}],"summary":{"text":"Craft CMS contains a path traversal flaw in the AssetsController replaceFile() method, where the targetFilename parameter is passed unsanitized to a file deletion call before asset name sanitization is applied. An attacker with network access and low-privilege authenticated access holding the replaceFiles permission can use ../ sequences in the filename to delete arbitrary files within the same local filesystem root, potentially reaching other volumes that share that root, without user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:12Z"},"euvd":{"id":"EUVD-2026-12503","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-craft-cms-cms-cve-2023-30177","children":[{"from":"CVE-2026-32262","to":"CVE-2026-50282","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/controllers/AssetsController.php"],"commits":["https://github.com/craftcms/cms/commit/c997efbe4c66c14092714233aeebff15cdbfcf11","https://github.com/craftcms/cms/commit/2c2579c7f1030872423f268d0c8b48377101961d"],"basis":"shared function","functions":["actionReplaceFile"]}]},{"from":"CVE-2026-32262","to":"CVE-2026-50283","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/controllers/AssetsController.php"],"commits":["https://github.com/craftcms/cms/commit/c997efbe4c66c14092714233aeebff15cdbfcf11","https://github.com/craftcms/cms/commit/2c2579c7f1030872423f268d0c8b48377101961d"],"basis":"shared function","functions":["actionReplaceFile"]}]}],"packageHistory":[{"cve":"CVE-2026-31859","published":"2026-03-11","fixed":"5.9.7","kev":false},{"cve":"CVE-2026-31857","published":"2026-03-11","fixed":"5.9.9","kev":false,"link":{"from":"CVE-2026-31857","to":"CVE-2026-32262","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/cms","fromFixed":"4.17.4","toFixed":"4.17.5","daysApart":5}]}},{"cve":"CVE-2026-31858","published":"2026-03-11","fixed":"5.9.9","kev":false},{"cve":"CVE-2026-32262","published":"2026-03-16","fixed":"5.9.11","kev":false},{"cve":"CVE-2026-32263","published":"2026-03-16","fixed":"5.9.11","kev":false},{"cve":"CVE-2026-32264","published":"2026-03-16","fixed":"5.9.11","kev":false},{"cve":"CVE-2026-33051","published":"2026-03-20","fixed":"5.9.11","kev":false}],"package":"Packagist:craftcms/cms"}}