# CVE-2026-50282: Craft CMS authorization bypass in AssetsController folder move

Source: https://junglewise.ai/threats/cve-2026-50282-craft-cms-authorization-bypass-in-assetscontroller-folder-move  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-02. Updated: 2026-07-02  
License: CC BY 4.0 with a link back

CVE-2026-50282 · Severity: high · CVSS 4 · Published 2026-07-02

Craft CMS, a popular content management system, contains a flaw in how it handles asset folder management. An authorized user who has permission to move folders but lacks permission to delete them can bypass security restrictions to delete folders and their contents in other areas of the system. This could lead to permanent loss of business assets, broken website links, and operational disruption.

Technologies: [craftcms/cms (Packagist)](https://junglewise.ai/threats/technologies/craftcms-cms). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-50282 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-50282 being exploited in the wild.

**How severe is CVE-2026-50282?** High severity, with a CVSS score of 4, published 2 July 2026.

**Which products and versions are affected?** craftcms/cms (Packagist) ECOSYSTEM:introduced=5.0.0-RC1,fixed=5.9.21.

**Is there a fix for CVE-2026-50282?** Yes. craftcms/cms (Packagist): upgrade to 5.9.21 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-50282 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-50282?** Check whether you run craftcms/cms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- craftcms/cms (Packagist): upgrade to 5.9.21 or later

  ```sh
  composer require craftcms/cms:^5.9.21
  ```


## Technical details

A missing authorization check exists in Craft CMS's `AssetsController::actionMoveFolder()`. When a folder move is initiated with the `force=true` parameter, the application fails to verify if the user has `deleteAssets` permissions for the destination volume or the specific conflicting folder. An attacker with low-level privileges (specifically `deleteAssets` on the source and `createFolders`/`saveAssets` on the destination) can overwrite and effectively delete any existing folder at the destination by triggering a name conflict. This affects both indexed folders via the Assets service and unindexed folders directly on the filesystem. The issue is patched in versions 4.17.14 and 5.9.21.

## Affected products

- Pixel & Tonic Craft CMS >= 4.0.0-RC1, < 4.17.14; >= 5.0.0-RC1, < 5.9.21

## Identifiers

- CVE-2026-50282
- GHSA-3w32-23wj-rxg3

## Timeline

- 2026-05-29: disclosed: Initial disclosure to vendor
- 2026-07-02: advisory: GitHub Advisory published
- 2026-07-02: patched: Fixes released in versions 4.17.14 and 5.9.21

## References

- [https://api.github.com/users/davidbors-snyk](https://api.github.com/users/davidbors-snyk)
- [https://github.com/davidbors-snyk](https://github.com/davidbors-snyk)
- [https://api.github.com/users/davidbors-snyk/gists%7B/gist_id%7D](https://api.github.com/users/davidbors-snyk/gists%7B/gist_id%7D)
- [https://api.github.com/users/davidbors-snyk/repos](https://api.github.com/users/davidbors-snyk/repos)
- [https://avatars.githubusercontent.com/u/240482518?v=4](https://avatars.githubusercontent.com/u/240482518?v=4)
- [https://api.github.com/users/davidbors-snyk/events%7B/privacy%7D](https://api.github.com/users/davidbors-snyk/events%7B/privacy%7D)

## Related threats

- [Craft CMS: Stored XSS in the control panel via unescaped draft name](https://junglewise.ai/threats/cve-2026-72787-craft-cms-stored-xss-in-the-control-panel-via-unescaped-draft)
- [Craft CMS: Arbitrary user password reset leading to administrator account takeover](https://junglewise.ai/threats/cve-2026-72786-craft-cms-arbitrary-user-password-reset-leading-to-administrator)
- [Craft CMS authorization bypass in category structure modification](https://junglewise.ai/threats/craft-cms-authorization-bypass-in-category-structure-modification-1555f980)
- [Craft CMS authenticated RCE through Twig sandbox escape](https://junglewise.ai/threats/craft-cms-authenticated-rce-through-twig-sandbox-escape-32ee5ec1)
- [Craft CMS path traversal in ensurePathIsContained](https://junglewise.ai/threats/craft-cms-path-traversal-in-ensurepathiscontained-4adc3058)
