Skip to main content

Craft CMS EUVDEUVD-2026-41154

| CVE-2026-50283 MEDIUM
Missing Authorization (CWE-862)
2026-07-01 GitHub_M GHSA-qh45-9g5p-m2v4
5.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Craft CMS as low-privilege user
  2. Delivery
    Identify target volume asset ID via media browser
  3. Exploit
    Craft replace-file POST with both assetId and sourceAssetId
  4. Execution
    Server ternary resolves permission check to target asset only
  5. Persist
    Source asset deleted without delete-permission verification
  6. Impact
    Victim volume asset permanently removed, content references broken

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated Craft CMS user account with 'Replace files' permission granted in at least one asset volume. The attacker must additionally obtain a valid numeric asset ID (sourceAssetId) for an asset residing in a different volume where they lack delete permission; Craft CMS assigns sequential integer IDs to assets, and the CMS media browser UI may expose IDs from multiple volumes to any authenticated user. The vulnerability is triggered exclusively by the AssetsController::actionReplaceFile HTTP endpoint when both the assetId and sourceAssetId request parameters are supplied in the same request - standard single-parameter replace operations are unaffected. Exploitation is bounded by: mandatory low-privilege CMS authentication, possession of 'Replace files' permission in at least one volume, and the ability to discover or enumerate a valid sourceAssetId in the victim volume. Unauthenticated external attackers cannot exploit this flaw.

Impact

The CVSS 4.0 score of 5.3 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N accurately characterizes a medium-severity issue: network-accessible with low complexity, but gated behind authenticated low-privilege access and limited in scope to partial integrity and availability impact. The real-world risk is substantially shaped by deployment context - in a single-editor installation the impact is negligible, but in multi-tenant or agency environments with granular volume permissions (the typical Craft CMS use case), a malicious or compromised editor could silently destroy assets in restricted volumes, breaking site content and triggering data-loss incidents. The lack of CISA KEV listing and absence of identified public POC code reduce the probability of opportunistic exploitation from external threat actors. EPSS data was not provided; given the PR:L requirement, widespread automated scanning is unlikely. The primary risk vector is insider threat or account compromise within an authenticated CMS user pool. The CVSS vector and description are fully consistent - no conflicting signals detected.

Exploit ScenarioDerived

An authenticated Craft CMS editor with 'Replace files' permission in Volume A (e.g., a public uploads volume) but no delete permission in Volume B (e.g., a protected documents archive) opens the media browser to enumerate a valid asset ID in Volume B. The editor then crafts a POST request to the actionReplaceFile endpoint supplying their own asset's ID as assetId and the Volume B asset's ID as sourceAssetId. The server's ternary permission check resolves to the Volume A target, grants the operation, copies the source file into the target, and then unconditionally deletes the Volume B asset - leaving broken content references site-wide and no audit trail of the delete action. No public exploit code has been identified, but the attack requires only standard HTTP tooling and knowledge of a valid sourceAssetId.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 01, 2026

Unauthorized cross-volume asset deletion in Craft CMS versions 4.0.0-RC1 through 4.17.13 and 5.0.0-RC1 through 5.9.20 allows any authenticated user with file-replace permission in one volume to permanently delete assets from other volumes where they hold no delete permission. The flaw stems from a PHP ternary operator short-circuit in AssetsController::actionReplaceFile() that bypasses source-volume authorization when both assetId and sourceAssetId parameters are supplied together. No public exploit code has been identified and the vulnerability is not listed in CISA KEV; however, the low complexity of the attack logic and the CMS's sequential asset IDs make exploitation straightforward for any low-privilege authenticated insider or compromised account.

RemediationAI

Vendor-released patch: upgrade Craft CMS v4 installations to 4.17.14 and v5 installations to 5.9.21, as confirmed by the security advisory at https://github.com/craftcms/cms/security/advisories/GHSA-qh45-9g5p-m2v4 and the upstream fix commit at https://github.com/craftcms/cms/commit/2c2579c7f1030872423f268d0c8b48377101961d. If immediate patching is blocked, the most targeted compensating control is to audit and restrict the 'Replace files' permission exclusively to users who also hold 'Delete assets' across all volumes they can access - this prevents the permission mismatch that the flaw exploits, though it reduces workflow flexibility in multi-role deployments. Additionally, review CMS user-role matrices to identify accounts with replace permissions in any volume and confirm whether those accounts require cross-volume access; removing unnecessary replace permissions narrows the exploitable surface. These controls do not fix the underlying code defect and should be treated as temporary measures only.

Affected VersionsENISA

CMS 5.0.0-RC1, < 5.9.21
CMS 4.0.0-RC1, < 4.17.14

Affected Packages

composer craftcms/cms fix: 4.17.14, 5.9.21
euvd cms_4_0_0_rc1 fix: 4.17.14
euvd cms_5_0_0_rc1 fix: 5.9.21

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the AssetsController::actionReplaceFile() method of Craft CMS, a PHP-based content management system (CPE: cpe:2.3:a:craftcms:cms). The action is designed to replace a target asset file using another existing asset as a source. It loads two objects - the target ($assetToReplace, from assetId) and the source ($sourceAsset, from sourceAssetId) - then performs a permission check using the PHP Elvis/ternary expression ($assetToReplace ?: $sourceAsset). In PHP, this ternary returns the left operand whenever it is truthy, so when both IDs are present, $assetToReplace is always selected and permission is checked only against the target volume. The method then copies the source file into the target location and unconditionally deletes the source asset, with no separate authorization check against the source asset's volume. This is a canonical CWE-862 (Missing Authorization) defect: a privileged operation (cross-volume deletion) executes along a code path that omits the corresponding permission gate.

Know when Cms gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
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
vuln.today AI 5.4 MEDIUM

Network-accessible HTTP endpoint requires low-privilege authentication (PR:L); no confidentiality impact, only limited cross-volume asset deletion affecting integrity and availability.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 02, 2026 - 20:17 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
popular PHP CMS with significant agency and commercial adoption
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Cms

View all
CVE-2020-7357 CRITICAL POC
9.9 Aug 06

Cayin CMS suffers from an authenticated OS semi-blind command injection vulnerability using default credentials. Rated c

CVE-2012-4405 MEDIUM
6.8 Sep 18

Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl

CVE-2021-47753 CRITICAL POC
9.8 Jan 15

phpKF CMS 3.00 Beta allows unauthenticated PHP file upload by disguising it as a PNG, then renaming it for execution. Po

CVE-2019-9874 CRITICAL POC
9.8 May 31

Deserialization of Untrusted Data in the Sitecore.Security.AntiCSRF (aka anti CSRF) module in Sitecore CMS 7.0 to 7.2 an

CVE-2019-9875 HIGH POC
8.8 May 31

Deserialization of Untrusted Data in the anti CSRF module in Sitecore through 9.1 allows an authenticated attacker to ex

CVE-2026-113358 HIGH POC
8.7 Oct 20

Unauthenticated file disclosure in LavaLite CMS through 10.1.2 allows remote attackers to download private stored files

CVE-2026-56382 HIGH POC
8.6 Jun 21

Authenticated remote code execution in Craft CMS versions 5.5.0 through 5.9.13 allows admin users to execute arbitrary P

CVE-2012-5894 HIGH POC
7.5 Nov 17

SQL injection vulnerability in hava_post.php in Havalite CMS 1.1.0 and earlier allows remote attackers to execute arbitr

CVE-2012-5893 MEDIUM POC
6.8 Nov 17

Unrestricted file upload vulnerability in hava_upload.php in Havalite CMS 1.1.0 and earlier allows remote attackers to e

CVE-2015-2083 MEDIUM POC
6.8 Feb 25

Cross-site request forgery (CSRF) vulnerability in Ilch CMS allows remote attackers to hijack the authentication of admi

CVE-2012-5919 MEDIUM POC
4.3 Nov 19

Multiple cross-site scripting (XSS) vulnerabilities in Havalite 1.0.4 and earlier allow remote attackers to inject arbit

CVE-2025-5429 MEDIUM POC
6.3 Jun 02

A security vulnerability in juzaweb CMS (CVSS 6.3). Risk factors: public PoC available.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy