CVE-2024-34102 — Vulnerability in magento/community-edition
Magento Open Source affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected magento/community-edition version?
Paste your composer.lock to check it for CVE-2024-34102 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
Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability that could result in arbitrary code execution. An attacker could exploit this vulnerability by sending a crafted XML document that references external entities. Exploitation of this issue does not require user interaction.
Advisory Timeline
- First published June 13, 2024 (896 days ago).
- Last revised July 17, 2024 — 34 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 34 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "magento/community-edition:^2.4.5-p8"
composer require "magento/community-edition:^2.4.6-p6"
composer require "magento/community-edition:^2.4.4-p9"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (7)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| magento/community-edition Packagist · Affected: 2.4.7 | No fix available |
| magento/community-edition Packagist · Affected: 2.4.5-p1, 2.4.5-p2, 2.4.5-p3, 2.4.5-p4 (+3 more) | 2.4.5-p8 |
| magento/community-edition Packagist · Affected: 2.4.5 | No fix available |
| magento/community-edition Packagist · Affected: 2.4.6 | No fix available |
| magento/community-edition Packagist · Affected: 2.4.6-p1, 2.4.6-p2, 2.4.6-p3, 2.4.6-p4 (+1 more) | 2.4.6-p6 |
| magento/community-edition Packagist · Affected: 0.1.0-alpha100, 0.1.0-alpha101, 0.1.0-alpha102, 0.1.0-alpha103 (+142 more) | 2.4.4-p9 |
| magento/community-edition Packagist · Affected: 2.4.4 | No fix available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-611XML External Entity (XXE)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-34102ADVISORY
- https://github.com/magento/magento2/commit/30877fce83b793f71421c47347885cf076e81799WEB
- https://github.com/magento/magento2/commit/a3c6d6e5e95e63031e4df26cfcf76feace7549c2WEB
- https://github.com/magento/magento2/commit/c5c538810b87449886f4669cb8abbe8e5593c83cWEB
- https://github.com/magento/magento2/commit/d10435b11ada4e502dca7539f8fd31d059d3c482#diff-84a0773a6287fbbaadf3b9103f4a137fc0b6946de2437ddfd6f60a0722cf8d23WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2024-34102.yamlWEB
- https://github.com/magento/magento2PACKAGE
- https://helpx.adobe.com/security/products/magento/apsb24-40.htmlWEB
- https://www.vicarius.io/vsociety/posts/cosmicsting-critical-unauthenticated-xxe-vulnerability-in-adobe-commerce-and-magento-cve-2024-34102WEB
Frequently Asked Questions
- What is CVE-2024-34102?
- Magento Open Source affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2024-34102?
- CVE-2024-34102 affects magento/community-edition. It has a 92.6% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-34102 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.9% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: July 17, 2024
Remediation deadline: August 7, 2024
Also Known As
Related CVEs
- CVE-2020-9585CRITICAL
Magento Defense-in-depth security mitigation vulnerability
- CVE-2020-9630CRITICAL
Magento business logic error vulnerability
- CVE-2021-36025CRITICAL
Magento is affected by an improper input validation vulnerability while saving a customer's details
- CVE-2025-49555HIGH
Magento Cross-Site Request Forgery (CSRF) vulnerability
- CVE-2025-24410HIGH
Magento Stored Cross-Site Scripting (XSS) Vulnerability
- CVE-2024-20759MEDIUM
Magento Open Source allows Cross-Site Scripting (XSS)
- CVE-2023-38221MEDIUM
Magento Open Source allows SQL Injection
- CVE-2023-38250MEDIUM
Magento Open Source allows SQL Injection