Craft CMS Vulnerable to Unauthorized Deletion of Destination Folders During Forced Moves
High severity. Published 2 July 2026. Update craftcms/cms to the fixed version of your branch (5.9.21, 4.17.14): composer update craftcms/cms.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| craftcms/cms (opens in a new tab) | >= 5.0.0-RC1, < 5.9.21 | >= 4.0.0-RC1, < 4.17.14 | 5.9.21, 4.17.14 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show craftcms/cms
composer auditAdvisory details
| Severity | High |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-50282 (opens in a new tab) |
| GHSA | GHSA-3w32-23wj-rxg3 (opens in a new tab) |
| Weakness | CWE-862 |
What the advisory says
We have identified an authorization issue in Craft CMS where a forced folder move can delete a conflicting destination folder without destination delete permission.
Description
Craft CMS’s craft\\controllers\\AssetsController::actionMoveFolder() supports moving an asset folder into a destination parent folder. If a folder with the same name already exists at the destination, the action can be called with force=true to overwrite the destination.
The permission checks for this action allow:
- deleteAssets: for the folder being moved - createFolders: for the destination parent folder - saveAssets: for the destination parent folder
Source: GHSA-3w32-23wj-rxg3 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Craft CMS: Passkey login accepts replayed WebAuthn assertions (critical, 7 August 2026)
- Craft CMS: Authorization bypass: view-only Categories user can modify category structure via structures/move-element (opens in a new tab) (medium, 6 August 2026)
- Craft CMS: Missing authorization check allows non-admin control panel users access to user registration metrics (opens in a new tab) (medium, 6 August 2026)
- Craft CMS: Arbitrary user password reset leading to administrator account takeover (high, 6 August 2026)
- Craft CMS: Authenticated RCE through Twig sandbox escape (high, 6 August 2026)