Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2026-32262

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

March 16, 2026

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.

References

  • github.com/advisories/GHSA-472v-j2g4-g9h2
  • github.com/craftcms/cms
  • github.com/craftcms/cms/commit/c997efbe4c66c14092714233aeebff15cdbfcf11
  • github.com/craftcms/cms/security/advisories/GHSA-472v-j2g4-g9h2
  • nvd.nist.gov/vuln/detail/CVE-2026-32262

Code Behaviors & Features

Detect and mitigate CVE-2026-32262 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0-RC1 before 4.17.5, all versions starting from 5.0.0-RC1 before 5.9.11

Fixed versions

  • 4.17.5
  • 5.9.11

Solution

Upgrade to versions 4.17.5, 5.9.11 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/craftcms/cms/CVE-2026-32262.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.