CVE-2019-7874
Description
A cross-site request forgery vulnerability in Magento allows an attacker to delete user roles by tricking an admin into making an unintended request.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A cross-site request forgery vulnerability in Magento allows an attacker to delete user roles by tricking an admin into making an unintended request.
Vulnerability
Overview
CVE-2019-7874 is a cross-site request forgery (CSRF) vulnerability affecting Magento Commerce and Open Source versions 2.1 prior to 2.1.18, 2.2 prior to 2.2.9, and 2.3 prior to 2.3.2 [1][2]. The flaw resides in the user role management functionality, where insufficient CSRF protections allow an attacker to forge requests that delete user roles without the administrator's consent [4].
Exploitation
Prerequisites
Exploitation requires that an authenticated administrator with privileges to manage user roles visits a malicious page or clicks a crafted link while logged into the Magento admin panel [2]. The attacker does not need any prior authentication or special network access; the attack is performed by tricking the victim's browser into sending a forged HTTP request to the Magento backend [1].
Impact
Successful exploitation results in the unintended deletion of user roles, which can lead to privilege escalation or disruption of administrative access controls [2]. An attacker could remove roles assigned to other administrators, potentially locking them out or altering permissions, depending on the site's configuration [4].
Mitigation
Adobe released security patches in Magento 2.1.18, 2.2.9, and 2.3.2 to address this vulnerability [1]. Note that Magento 2.1.x reached end-of-life on June 30, 2019, and no longer receives security updates, so users of that branch are strongly advised to upgrade to a supported version [1]. No workarounds have been publicly documented, and the vulnerability is not known to be exploited in the wild as of the advisory publication [2].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
magento/community-editionPackagist | >= 2.1.0, < 2.1.18 | 2.1.18 |
magento/community-editionPackagist | >= 2.2.0, < 2.2.9 | 2.2.9 |
magento/community-editionPackagist | >= 2.3.0, < 2.3.2 | 2.3.2 |
Affected products
2- Range: Magento 2.1 prior to 2.1.18, Magento 2.2 prior to 2.2.9, Magento 2.3 prior to 2.3.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-8v75-8jj8-77gfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-7874ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2019-7874.yamlghsaWEB
- magento.com/security/patches/magento-2.3.2-2.2.9-and-2.1.18-security-update-13ghsax_refsource_CONFIRMWEB
- web.archive.org/web/20211206084839/https://magento.com/security/patches/magento-2.3.2-2.2.9-and-2.1.18-security-update-13ghsaWEB
News mentions
0No linked articles in our index yet.