Impact
Craft CMS versions 4.0.0-rc1 through 4.17.14 and 5.0.0-rc1 through 5.9.21 expose a missing peer-permission check in the AssetsController::actionDeleteFolder method. The action only requires the deleteAssets:<volume-uid> permission and fails to enforce deletePeerAssets:<volume-uid> when cascading deletion to descendant folders and assets. This missing check is classified as CWE-862, a missing permission check, allowing a low-privilege user granted folder-management rights on a shared volume to delete assets uploaded by other users, erasing content and compromising data integrity.
Affected Systems
All installations of Craft CMS on the affected releases, namely versions 5.0.0-rc1 through 5.9.21 and 4.0.0-rc1 through 4.17.14, are vulnerable. The issue is confined to the Assets component and does not require elevated privileges beyond those granted for folder management within a shared volume.
Risk and Exploitability
The vulnerability has a CVSS score of 7.1, indicating high severity. The EPSS score of < 1% indicates a very low but non-zero exploitation rate, and it is not listed in the CISA KEV catalog. The likely attack vector is a low-privileged user granted folder-management rights on a shared volume. With those rights, the user can trigger a delete operation on a folder, bypassing per-asset access controls and deleting content belonging to other users.
OpenCVE Enrichment
Github GHSA