> CVE-2026-50281 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-07-02 17:17
MODIFIED
2026-07-02 17:39
CVSS_SCORE V3
7.1
EPSS (Prob. Exploit)
0.43%
Top 62.8%
DATA SOURCES:
NVD đź”— 2026-07-02 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-11-01 GITHUB đź”— 2026-11-05 OSV đź”— 2026-10-26

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

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

> MÉTRIQUES CVSS DÉTAILLÉES

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
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-915

> CWE DETAILED DESCRIPTIONS

CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes - The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.

> GITHUB SECURITY ADVISORY

GHSA-x5m4-g2cq-52pq HIGH

Craft CMS's mass assignment via id in newAttributes during bulk duplicate overwrites existing elements

AFFECTED PACKAGES:
COMPOSER / craftcms/cms
>= 5.7.0, < 5.9.21
Fixed in: 5.9.21

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Craft CMS: Mass assignment via id in newAttributes during bulk duplicate overwrites existing elements

AFFECTED PACKAGES:
Unknown / Unknown
64 versions affected
ALIASES:
GHSA-x5m4-g2cq-52pq

> HISTORIQUE DES MODIFICATIONS

Première apparition
02/07/2026 17:17
Source: NVD
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes - The product receives input from an upstream component that specifies multiple attributes, properties, or field...
Total des modifications: 1 Dernière mise à jour: 3 months ago

> REFERENCES

https://github.com/craftcms/cms/commit/8f6587c25050bbb6e080d59c71f6bb8932fc8600
https://github.com/craftcms/cms/security/advisories/GHSA-x5m4-g2cq-52pq
« BACK_TO_HOME