Vulnerability record · CVE-2024-34102 · published 13 June 2024
CVE-2024-34102: Adobe Commerce and Magento XXE flaw allows unauthenticated code execution
Adobe · Commerce
Adobe Commerce and Magento Open Source are affected by an improper restriction of XML external entity reference (XXE) vulnerability. A crafted XML document referencing external entities can be processed by the application, and the vendor states this can result in arbitrary code execution. The flaw is remotely reachable without authentication or user interaction, making it a serious risk for exposed storefronts.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityCVSS 9.8, unauthenticated network exploitation, CISA KEV listing and near-maximum EPSS probability make this an urgent patch-first issue.
What it is
Adobe Commerce and Magento Open Source are affected by an improper restriction of XML external entity reference (XXE) vulnerability. A crafted XML document referencing external entities can be processed by the application, and the vendor states this can result in arbitrary code execution. The flaw is remotely reachable without authentication or user interaction, making it a serious risk for exposed storefronts.
Impact
An unauthenticated attacker can send a crafted XML document to trigger XXE and, per the advisory, achieve arbitrary code execution on the affected Commerce or Magento instance. That gives full control over the application and its data, with high confidentiality, integrity and availability impact.
Attack surface
The vulnerability is network-reachable (AV:N) with no privileges (PR:N) and no user interaction (UI:N), so it can be triggered directly by sending a crafted XML request to the affected service. No authentication is required.
Exploitation
CVE-2024-34102 is listed in CISA KEV with a due date of 2024-08-07, and EPSS shows a 30-day probability of 0.99994 (99.988th percentile). Public exploit and technical description references exist, so active exploitation should be assumed.
What to do
- Apply the Adobe Commerce/Magento security update referenced in Adobe advisory APSB24-40 for your release line (2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier).
- If immediate patching is not possible, follow Adobe's documented mitigations or take the instance offline, as directed by CISA KEV guidance.
- Restrict network access to Commerce/Magento admin and API endpoints to trusted sources and place the application behind a WAF or reverse proxy that blocks XML external entity payloads.
- Disable or harden XML parsing where possible, rejecting DOCTYPE declarations and external entity references in incoming XML.
- Review logs and configuration for signs of prior exploitation before and after patching, since the flaw may have been used before remediation.
Detection
- Search web and application logs for XML requests containing DOCTYPE or ENTITY declarations, especially referencing external or file URIs.
- Monitor for unexpected outbound connections from the Commerce/Magento host to attacker-controlled or unusual destinations, which can indicate XXE data exfiltration.
- Look for anomalous child processes or file writes originating from the web server/PHP process that could indicate post-exploitation code execution.
- Correlate requests to known vulnerable endpoints with KEV/EPSS-driven alerting and review for repeated crafted XML submissions from single sources.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2024-34102 to the Known Exploited Vulnerabilities catalog on 17 July 2024 as "Adobe Commerce and Magento Open Source Improper Restriction of XML External Entity Reference (XXE) Vulnerability". Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. Federal deadline 7 August 2024.
Affected products
3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://helpx.adobe.com/security/products/magento/apsb24-40.html | Vendor Advisory |
| https://www.vicarius.io/vsociety/posts/cosmicsting-critical-unauthenticated-xxe-vulnerability-in-adobe-commerce-and-mage | ExploitTechnical DescriptionThird Party Advisory |
| https://helpx.adobe.com/security/products/magento/apsb24-40.html | Vendor Advisory |
| https://www.vicarius.io/vsociety/posts/cosmicsting-critical-unauthenticated-xxe-vulnerability-in-adobe-commerce-and-mage | ExploitTechnical DescriptionThird Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-34102 | Third Party AdvisoryUS Government Resource |
Track CVE-2024-34102 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2024-34102), CISA KEV, FIRST EPSS (scores of 2026-09-16). This page is refreshed as NVD updates the record.