CVE-2019-7876 — Vulnerability in magento/community-edition
Magento 2 Community Edition RCE Vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.92%). Schedule for your next planned update.
Does your project use an affected magento/community-edition version?
Paste your composer.lock to check it for CVE-2019-7876 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
A remote code execution vulnerability exists in Magento 2.1 prior to 2.1.18, Magento 2.2 prior to 2.2.9, Magento 2.3 prior to 2.3.2. An authenticated user with privileges to manipulate layouts can insert a malicious payload into the layout.
Advisory Timeline
- First published May 24, 2022 (1647 days ago).
- Last revised November 28, 2024 — 919 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "magento/community-edition:^2.2.9"
composer require "magento/community-edition:^2.1.18"
composer require "magento/community-edition:^2.3.2"
composer require "magento/product-community-edition:^2.2.9"
composer require "magento/product-community-edition:^2.3.2"
composer require "magento/product-community-edition:^2.1.18"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| magento/community-edition Packagist · Affected: 2.2.0, 2.2.1, 2.2.2, 2.2.3 (+5 more) | 2.2.9 |
| magento/community-edition Packagist · Affected: 2.1.0, 2.1.0-rc1, 2.1.0-rc2, 2.1.0-rc3 (+17 more) | 2.1.18 |
| magento/community-edition Packagist · Affected: 2.3.0, 2.3.1 | 2.3.2 |
| magento/product-community-edition Packagist · Affected: All versions | 2.2.9 |
| magento/product-community-edition Packagist · Affected: All versions | 2.3.2 |
| magento/product-community-edition Packagist · Affected: All versions | 2.1.18 |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-7876ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2019-7876.yamlWEB
- https://magento.com/security/patches/magento-2.3.2-2.2.9-and-2.1.18-security-update-13WEB
- https://web.archive.org/web/20211206084839/https://magento.com/security/patches/magento-2.3.2-2.2.9-and-2.1.18-security-update-13WEB
Frequently Asked Questions
- What is CVE-2019-7876?
- Magento 2 Community Edition RCE Vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2019-7876?
- CVE-2019-7876 affects magento/community-edition and magento/product-community-edition. It has a 1.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-7876 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 80.5% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2020-9585CRITICAL
Magento Defense-in-depth security mitigation vulnerability
- CVE-2024-20720HIGH
Magento Open Source allows OS Command Injection
- CVE-2024-39400HIGH
Magento DOM-based Cross-Site Scripting (XSS) vulnerability
- CVE-2025-49555HIGH
Magento Cross-Site Request Forgery (CSRF) vulnerability
- CVE-2023-29297HIGH
Magento Open Source allows Improper Neutralization of Special Elements Used
- CVE-2025-24410HIGH
Magento Stored Cross-Site Scripting (XSS) Vulnerability
- CVE-2019-7865HIGH
Magento 2 Community Edition CSRF Vulnerability
- CVE-2023-38221MEDIUM
Magento Open Source allows SQL Injection