# CVE-2024-34102: Adobe Commerce and Magento Open Source Improper Restriction of XML External Entity Reference (XXE)

> An attacker can exploit an XXE vulnerability in Adobe Commerce to expose secrets and gain full admin access without user interaction.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 17 Jul 2024 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 13 Jun 2024
- **Updated:** 21 Oct 2025
- **Also known as:** BIT-magento-2024-34102, GHSA-m8cj-3v68-3cxj

## What is CVE-2024-34102?

CVE-2024-34102 is a critical vulnerability in Adobe Commerce, published on 13 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-611 (Improper Restriction of XML External Entity Reference)

## Which versions are affected by CVE-2024-34102?

9 open source packages ship an affected version, including magento/community-edition and magento. It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `magento/community-edition` | Packagist | All versions | None |
| `magento/community-edition` | Packagist | All versions | None |
| `magento/community-edition` | Packagist | All versions | 2.4.4-p9 |
| `magento/community-edition` | Packagist | All versions | 2.4.4-p9 |
| `magento/community-edition` | Packagist | From 2.4.5-p1 | 2.4.5-p8 |
| `magento/community-edition` | Packagist | From 2.4.5-p1 | 2.4.5-p8 |
| `magento/community-edition` | Packagist | From 2.4.6-p1 | 2.4.6-p6 |
| `magento/community-edition` | Packagist | From 2.4.6-p1 | 2.4.6-p6 |
| `magento` | Bitnami | From 2.4.7-alpha0 | 2.4.7-p1, 2.4.6-p6, 2.4.5-p8, 2.4.4-p9 |

Products: Adobe Commerce, Adobe Commerce Webhooks, Adobe Magento.

## How do I fix CVE-2024-34102?

Upgrade magento/community-edition to a fixed version for your release line: 2.4.4-p9, 2.4.5-p8 or 2.4.6-p6. US federal agencies must fix it by 7 Aug 2024.

## Is CVE-2024-34102 being exploited?

Yes. Attackers have exploited CVE-2024-34102 in the wild since at least 17 Jul 2024.

Public exploit code:

- CosmicSting (CVE-2024-34102) (github_poc): https://github.com/Chocapikk/CVE-2024-34102
- POC for CVE-2024-34102. A pre-authentication XML entity injection issue in Magento / Adobe Commerce.  (github_poc): https://github.com/bigb0x/CVE-2024-34102
- CVE-2024-34102: Unauthenticated Magento XXE (github_poc): https://github.com/th3gokul/CVE-2024-34102
- CosmicSting: critical unauthenticated XXE vulnerability in Adobe Commerce and Magento (CVE-2024-34102) (github_poc): https://github.com/jakabakos/CVE-2024-34102-CosmicSting-XXE-in-Adobe-Commerce-and-Magento
- Exploitation CVE-2024-34102 (github_poc): https://github.com/bughuntar/CVE-2024-34102
- Adobe Commerce XXE exploit (github_poc): https://github.com/EQSTLab/CVE-2024-34102

## Other vulnerabilities in Adobe Commerce

- [CVE-2026-75650](https://insights.sbomify.com/CVE-2026-75650/): Adobe Commerce and Magento Improper Neutralization of Special Elements Used in a Template Engine (critical 10.0, exploited in the wild)
- [CVE-2022-24086](https://insights.sbomify.com/CVE-2022-24086/): Adobe Commerce and Magento Open Source Improper Input Validation (critical 9.8, exploited in the wild)
- [CVE-2026-48356](https://insights.sbomify.com/CVE-2026-48356/): Adobe Commerce and Magento Unrestricted Upload of File with Dangerous Type (critical 9.3, exploited in the wild)
- [CVE-2026-71362](https://insights.sbomify.com/CVE-2026-71362/): Adobe Commerce and Magento Incorrect Authorization Vulnerability (critical 9.1, exploited in the wild)
- [CVE-2025-54236](https://insights.sbomify.com/CVE-2025-54236/): Adobe Commerce and Magento Improper Input Validation (critical 9.1, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-34102 and fix it if it is affected.

What it is: CVE-2024-34102 is a critical vulnerability in Adobe Commerce, published on 13 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2024-34102 in the wild since at least 17 Jul 2024.

Affected packages and fixed versions:
- magento/community-edition (Packagist): affected all versions; no fix listed
- magento/community-edition (Packagist): affected all versions; no fix listed
- magento/community-edition (Packagist): affected all versions; fixed in 2.4.4-p9
- magento/community-edition (Packagist): affected all versions; fixed in 2.4.4-p9
- magento/community-edition (Packagist): affected from 2.4.5-p1; fixed in 2.4.5-p8
- magento/community-edition (Packagist): affected from 2.4.5-p1; fixed in 2.4.5-p8
- magento/community-edition (Packagist): affected from 2.4.6-p1; fixed in 2.4.6-p6
- magento/community-edition (Packagist): affected from 2.4.6-p1; fixed in 2.4.6-p6
- magento (Bitnami): affected from 2.4.7-alpha0; fixed in 2.4.7-p1, 2.4.6-p6, 2.4.5-p8, 2.4.4-p9

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-34102/ (Markdown: https://insights.sbomify.com/CVE-2024-34102/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-34102
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-34102
- OSV: https://osv.dev/vulnerability/CVE-2024-34102

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-34102/
Summaries are generated and may contain mistakes; the official description above is the record.
