Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 82%

CVE-2026-50283: CWE-862: Missing Authorization in craftcms cms

0
Medium
VulnerabilityCVE-2026-50283cvecve-2026-50283cwe-862cwe-639
Published: 07/01/2026 (07/01/2026, 22:20:01 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
craftcms/cms
pkg:github/craftcms/cms

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

AILast updated: 07/09/2026, 09:20:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses