CVE-2026-50283: CWE-862: Missing Authorization in craftcms cms
Craft CMS is a content management system (CMS). Versions 5.0.0-RC1 through 5.9.20, and 4.0.0-RC1 through 4.17.13 contain an authorization issue in the AssetsController::actionReplaceFile that can delete a source asset without source delete permission by supplying both assetId and sourceAssetId. AssetsController::actionReplaceFile() supports replacing a target asset file using another existing asset as the source. The action loads: assetId -> $assetToReplace and sourceAssetId -> $sourceAsset, then enforces replace permissions using ($assetToReplace ?: $sourceAsset). When both IDs are provided, this expression resolves to the target asset so no permission check is performed against the source asset volume. When both assets are present, Craft copies the source file into the target and then deletes the source asset. There is no deletion check for for the source asset. An authenticated user who can replace files in one volume can delete assets in another volume where they do not have delete permission, as long as they can obtain a sourceAssetId, leading to broken content references and data loss. This issue has been fixed in versions 4.17.14 and 5.9.21.
AI Analysis
Technical Summary
The vulnerability in Craft CMS affects the AssetsController::actionReplaceFile method, which replaces a target asset file using another existing asset as the source. When both assetId (target) and sourceAssetId (source) are provided, the permission check incorrectly only verifies replace permissions on the target asset, omitting delete permission checks on the source asset. Consequently, an authenticated user who can replace files in one volume can delete assets in another volume where they lack delete permissions, by supplying a sourceAssetId. This leads to unauthorized deletion of source assets, causing broken content references and potential data loss. The issue is resolved in Craft CMS versions 4.17.14 and 5.9.21.
Potential Impact
An authenticated user with replace file permissions on one asset volume can delete assets in another volume without having delete permissions. This unauthorized deletion can cause broken content references and data loss within the CMS. The vulnerability undermines the authorization controls intended to protect asset deletion operations.
Mitigation Recommendations
This vulnerability has been fixed in Craft CMS versions 4.17.14 and 5.9.21. Users should upgrade to these or later versions to remediate the issue. Patch status is confirmed by the vendor advisory. No additional mitigation is required once updated.
CVE-2026-50283: CWE-862: Missing Authorization in craftcms cms
Description
Craft CMS is a content management system (CMS). Versions 5.0.0-RC1 through 5.9.20, and 4.0.0-RC1 through 4.17.13 contain an authorization issue in the AssetsController::actionReplaceFile that can delete a source asset without source delete permission by supplying both assetId and sourceAssetId. AssetsController::actionReplaceFile() supports replacing a target asset file using another existing asset as the source. The action loads: assetId -> $assetToReplace and sourceAssetId -> $sourceAsset, then enforces replace permissions using ($assetToReplace ?: $sourceAsset). When both IDs are provided, this expression resolves to the target asset so no permission check is performed against the source asset volume. When both assets are present, Craft copies the source file into the target and then deletes the source asset. There is no deletion check for for the source asset. An authenticated user who can replace files in one volume can delete assets in another volume where they do not have delete permission, as long as they can obtain a sourceAssetId, leading to broken content references and data loss. This issue has been fixed in versions 4.17.14 and 5.9.21.
CVSS v4.0
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Craft CMS affects the AssetsController::actionReplaceFile method, which replaces a target asset file using another existing asset as the source. When both assetId (target) and sourceAssetId (source) are provided, the permission check incorrectly only verifies replace permissions on the target asset, omitting delete permission checks on the source asset. Consequently, an authenticated user who can replace files in one volume can delete assets in another volume where they lack delete permissions, by supplying a sourceAssetId. This leads to unauthorized deletion of source assets, causing broken content references and potential data loss. The issue is resolved in Craft CMS versions 4.17.14 and 5.9.21.
Potential Impact
An authenticated user with replace file permissions on one asset volume can delete assets in another volume without having delete permissions. This unauthorized deletion can cause broken content references and data loss within the CMS. The vulnerability undermines the authorization controls intended to protect asset deletion operations.
Mitigation Recommendations
This vulnerability has been fixed in Craft CMS versions 4.17.14 and 5.9.21. Users should upgrade to these or later versions to remediate the issue. Patch status is confirmed by the vendor advisory. No additional mitigation is required once updated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-04T16:26:05.985Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a459a0d27e9c7971943c209
Added to database: 07/01/2026, 22:51:57 UTC
Last enriched: 07/09/2026, 09:20:44 UTC
Last updated: 08/15/2026, 21:39:35 UTC
Views: 70
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.