Description
Craft CMS is a content management system (CMS). In versions 5.0.0-RC1 through 5.9.21 and 4.0.0-RC1 through 4.17.14, theAssetsController::actionDeleteFolder() only requires the deleteAssets:<volume-uid> permission for the target folder. It never enforces deletePeerAssets:<volume-uid>, even though Assets::deleteFoldersByIds() cascades deletion to every descendant folder and every asset inside, regardless of the uploader's assigned privileges. A low-privilege user who has been granted folder-management rights on a shared volume can therefore destroy assets uploaded by other users (peer assets), bypassing the per-asset peer-permission check that the sibling actionDeleteAsset endpoint correctly applies. This issue has been fixed in versions 4.17.15 and 5.9.22.
Published: 2026-07-01
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Craft CMS versions 4.0.0-rc1 through 4.17.14 and 5.0.0-rc1 through 5.9.21 contain a missing permission enforcement in the AssetsController::actionDeleteFolder method. The function only checks for deleteAssets permission on the target volume and omits the required deletePeerAssets check, even though the deletion cascade removes all descendant folders and assets regardless of uploader ownership. This missing check allows a user with folder-management rights on a shared volume to delete assets that belong to other users, resulting in loss of content and data integrity. The flaw is classified as CWE-862.

Affected Systems

Any Craft CMS instance running any of the affected releases - 4.0.0-rc1 to 4.17.14 or 5.0.0-rc1 to 5.9.21 - with a shared volume that grants low-privilege users folder-management rights is vulnerable. The vulnerability is limited to the assets module and does not require higher privileges beyond the permissions normally granted for folder handling.

Risk and Exploitability

The CVSS score of 7.1 indicates high severity. The EPSS score is listed as less than 1%, implying a very low probability of exploitation but not zero, and the vulnerability is not referenced in the CISA KEV catalog, suggesting it is not a known actively exploited issue. The attack vector is most likely an authenticated user with folder-management rights on a shared volume who initiates a delete operation on a folder, thereby bypassing per-asset permission checks and removing peer assets.

Generated by OpenCVE AI on August 1, 2026 at 22:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Craft CMS release (4.17.15 or later for version 4, or 5.9.22 or later for version 5) to enforce the deletePeerAssets permission check and fix the vulnerability.
  • Enable audit logging for asset deletion events so that any unauthorized removal of peer assets can be detected.
  • Review and restrict the deletePeerAssets permission for shared volumes, granting it only to trusted roles to prevent low-privilege users from deleting other users' assets.

Generated by OpenCVE AI on August 1, 2026 at 22:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-7h62-6v23-v8fm Craft CMS: Missing peer-permission check in `AssetsController::actionDeleteFolder` allows deletion of other users' assets
History

Wed, 29 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Craftcms
Craftcms craftcms
Vendors & Products Craftcms
Craftcms craftcms

Thu, 02 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 01 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
Description Craft CMS is a content management system (CMS). In versions 5.0.0-RC1 through 5.9.21 and 4.0.0-RC1 through 4.17.14, theAssetsController::actionDeleteFolder() only requires the deleteAssets:<volume-uid> permission for the target folder. It never enforces deletePeerAssets:<volume-uid>, even though Assets::deleteFoldersByIds() cascades deletion to every descendant folder and every asset inside, regardless of the uploader's assigned privileges. A low-privilege user who has been granted folder-management rights on a shared volume can therefore destroy assets uploaded by other users (peer assets), bypassing the per-asset peer-permission check that the sibling actionDeleteAsset endpoint correctly applies. This issue has been fixed in versions 4.17.15 and 5.9.22.
Title Craft CMS: Missing peer-permission check in `AssetsController::actionDeleteFolder` allows deletion of other users' assets
Weaknesses CWE-862
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N'}


Subscriptions

Craftcms Craftcms
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-02T12:46:04.509Z

Reserved: 2026-06-04T16:26:05.985Z

Link: CVE-2026-50284

cve-icon Vulnrichment

Updated: 2026-07-02T12:45:59.931Z

cve-icon NVD

Status : Deferred

Published: 2026-07-01T23:16:52.350

Modified: 2026-07-02T15:11:16.363

Link: CVE-2026-50284

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T22:30:06Z

Weaknesses