Description
Craft CMS versions >= 5.0.0-RC1 and < 5.10.11 contain a missing authorization vulnerability in AssetsController::actionReplaceFile. When a request supplies sourceAssetId and targetFilename but omits assetId, the target asset is resolved by folder and filename after the permission checks execute, so the replacePeerFiles permission is never enforced. An authenticated low-privilege author with only the replaceFiles permission on a shared folder can overwrite the content of a peer's asset file (located in the same folder) with attacker-controlled bytes. Fixed in 5.10.11.
Published: 2026-09-02
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Craft CMS versions from 5.0.0‑RC1 through 5.10.10 allow a missing authorization check in AssetsController::actionReplaceFile. When a request includes sourceAssetId and targetFilename but omits assetId, the target asset is resolved by folder and filename after the controller’s permission checks run, so the required replacePeerFiles permission is never enforced. An authenticated user with only the replaceFiles permission on a shared folder can therefore overwrite the contents of a peer’s asset file in that folder with attacker‑controlled data, potentially corrupting site content or inserting malicious code. The vulnerability directly impacts data integrity, and if the overwritten asset is later served or executed by the CMS, it can lead to broader compromise.

Affected Systems

Craft CMS 5.x, including all releases from 5.0.0‑RC1 up to and excluding 5.10.11. The affected product is listed as craftcms:cms. Users running any of these versions should verify whether they have the replaceFiles permission enabled on shared folders.

Risk and Exploitability

The CVSS score of 7.1 signifies a high risk severity. The EPSS score is not available, and the CVE is not listed in the CISA KEV catalog. The likely attack vector requires an authenticated low‑privilege author who holds the replaceFiles permission on a shared folder; no additional privileges or remote conditions are needed. Because the flaw permits only file overwrite, the impact is limited to integrity and potential upstream code injection if overwritten assets are later executed.

Generated by OpenCVE AI on September 2, 2026 at 12:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Craft CMS to version 5.10.11 or later to apply the vendor’s fix
  • Restrict the replaceFiles permission to trusted users and audit shared folder access controls
  • Review and audit existing shared folders for sensitive asset files that could be overwritten and apply tighter permissions or separate them into protected directories

Generated by OpenCVE AI on September 2, 2026 at 12:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 11:30:00 +0000

Type Values Removed Values Added
Description Craft CMS versions >= 5.0.0-RC1 and < 5.10.11 contain a missing authorization vulnerability in AssetsController::actionReplaceFile. When a request supplies sourceAssetId and targetFilename but omits assetId, the target asset is resolved by folder and filename after the permission checks execute, so the replacePeerFiles permission is never enforced. An authenticated low-privilege author with only the replaceFiles permission on a shared folder can overwrite the content of a peer's asset file (located in the same folder) with attacker-controlled bytes. Fixed in 5.10.11.
Title Craft CMS 5.0.0-RC1 before 5.10.11 File Overwrite via assets/replace-file
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-862
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Craftcms Craft Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-02T13:17:41.009Z

Reserved: 2026-09-02T10:19:06.331Z

Link: CVE-2026-84800

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-09-02T12:17:16.773

Modified: 2026-09-02T13:54:48.797

Link: CVE-2026-84800

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T13:00:13Z

Weaknesses