BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed in
craftcms/cms (opens in a new tab)>= 5.0.0-RC1, < 5.9.21 | >= 4.0.0-RC1, < 4.17.145.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 audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-50282 (opens in a new tab)
GHSAGHSA-3w32-23wj-rxg3 (opens in a new tab)
WeaknessCWE-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

All Composer security advisories