CVE-2026-50283
published medium CVSS 4.0 · 5.3Craft CMS: Unauthorized Deletion of Source Assets During File Replacement
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| craftcms | — | cms>= 5.0.0-RC1, < 5.9.21 · >= 4.0.0-RC1, < 4.17.14 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| craftcms | cms | >= 5.0.0-RC1, < 5.9.21 (affected)>= 4.0.0-RC1, < 4.17.14 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-862 CWE-862: Missing Authorization
- CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key
References
2Provider assertions
2GitHub_M · cna
Craft CMS: Unauthorized Deletion of Source Assets During File Replacement
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a74d32f0ffdcb7209ecce30cbfa152132939eb45c9f7213a9510be3f4f1369de
- Ingested
- 23 Sep 2026, 09:18:57 UTC
- Source record
- Official CVE record