# Craft CMS Vulnerable to Unauthorized Deletion of Destination Folders During Forced Moves

High severity, published 2026-07-02. Update craftcms/cms to the fixed version of your branch (5.9.21, 4.17.14): composer update craftcms/cms.

Canonical URL: https://buzzphp.com/security/ghsa-3w32-23wj-rxg3 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-02 |
| Updated | 2026-07-02 |
| CVE | [CVE-2026-50282](https://nvd.nist.gov/vuln/detail/CVE-2026-50282) |
| GHSA | [GHSA-3w32-23wj-rxg3](https://github.com/advisories/GHSA-3w32-23wj-rxg3) |
| Weakness | CWE-862 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| craftcms/cms | >= 5.0.0-RC1, < 5.9.21 or >= 4.0.0-RC1, < 4.17.14 | 5.9.21, 4.17.14 |

## What to do

Update craftcms/cms to the fixed version of your branch (5.9.21, 4.17.14): composer update craftcms/cms.

Check which version you run with `composer show craftcms/cms`, and every affected package with `composer audit`.

## About this advisory

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



## Links

- [GHSA-3w32-23wj-rxg3 on GitHub](https://github.com/advisories/GHSA-3w32-23wj-rxg3)
- [CVE-2026-50282 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-50282)
- [All Composer security advisories](https://buzzphp.com/security)
