CVE-2026-50281: Craft CMS - Broken Access Control
- Cve: CVE-2026-50281
- Name: Craft CMS - Broken Access Control
- Description: Craft CMS is a content management system (CMS). Versions 5.7.0 and above, prior to 5.9.21 contain a mass-assignment flaw in the bulk-duplicate element action. An attacker who is only able to duplicate their own entires can submit an arbitrary id through the newAttributes request parameter. The duplication routine overrides its own id = null reset with that value and writes the attacker's attributes into the victim's existing entry row. ElementsController::beforeAction() pulls the request body into $this->_attributes and rejects requests that ship an id or canonicalId key at the top level, actionBulkDuplicate(), reads a separate newAttributes array and passes it straight through to the service layer. Elements::duplicateElement() clones the source element, sets id to null, and then hands the attacker's array to Craft::configure(), which overwrites the reset id with any numeric value inside $newAttributes. PHP Yii's saveElement() then performs an UPDATE against the row with that primary key instead of an INSERT. The attackers's title, slug, authorId, postDate, and UID land on the victim's entry. safeAttributes() on Entry includes id because the base element model exposes it, so the Collection::only() filter does not strip it. This issue has been fixed in version 5.9.21.
- Impact: Attackers can modify other users' entries, leading to unauthorized data tampering and potential content manipulation.
- Remediation: Update to version 5.9.21 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: data_tampering
- Requirement type: logged_in
- Requirements: Attacker must be able to duplicate their own entries
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.1
- Cvss vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Epss score: 0.00429
- Epss percentile: 0.37899
- Assignee: [email protected]
- Published at: 2026-07-02T17:17:00Z
- Age in days: 145
- Modified at: 2026-10-25T21:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-50281
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-915 | Improperly Controlled Modification of Dynamically-Determined Object Attributes |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/craftcms/cms/commit/8f6587c25050bbb6e080d59c71f6bb8932fc8600 | nvd | |
| https://github.com/craftcms/cms/security/advisories/GHSA-x5m4-g2cq-52pq | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| craftcms:craft_cms | >= 5.7.0, < 5.9.21 | no | cna_alias_text | /v1/products/craftcms/craft_cms |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| craftcms/cms | commit, fix, package, security_advisory | yes | /v1/repositories/craftcms/cms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 34344
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports