# CVE-2021-33813: XML External Entity (XXE) Injection in JDOM

> Attackers can cause denial of service in applications using JDOM via crafted HTTP requests exploiting an XXE vulnerability in SAXBuilder.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Jun 2021
- **Updated:** 3 Aug 2024
- **Also known as:** AZL-44931, BIT-solr-2021-33813, CLEANSTART-2026-GK30555, CLSA-2025-1766621307, CLSA-2026-1771891818, DEBIAN-CVE-2021-33813, DLA-2696-1, DLA-2712-1, GHSA-2363-cqg2-863c, MGASA-2021-0381, OESA-2022-1630, ROOT-APP-MAVEN-CVE-2021-33813, SUSE-SU-2021:2293-1, SUSE-SU-2022:3547-1, SUSE-SU-2024:1871-1, SUSE-SU-2024:1874-1, UBUNTU-CVE-2021-33813, openSUSE-SU-2021:1031-1, openSUSE-SU-2021:2293-1, openSUSE-SU-2024:10877-1, openSUSE-SU-2024:13180-1

## What is CVE-2021-33813?

CVE-2021-33813 is a high-severity vulnerability in Debian Debian Linux, published on 16 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An XXE issue in SAXBuilder in JDOM through 2.0.6 allows attackers to cause a denial of service via a crafted HTTP request.

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

## Which versions are affected by CVE-2021-33813?

5 open source packages ship an affected version, including org.jdom:jdom, solr and org.jdom:jdom2. It affects 6 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.jdom:jdom` | Maven | All versions to 2.0.2 | None |
| `org.jdom:jdom` | Maven | All versions to 2.0.2 | None |
| `solr` | Bitnami | From 8.8.1 | 8.8.2, 8.9.1 |
| `org.jdom:jdom2` | Maven | All versions | 2.0.6.1 |
| `org.jdom:jdom2` | Maven | All versions | 2.0.6.1 |
| `jdom` | SUSE:Enterprise Storage 6 | All versions | 1.1-150000.5.3.1 |
| `dom4j` | SUSE:Enterprise Storage 7.1 | All versions | 2.1.4-150200.12.10.2 |
| `hamcrest` | SUSE:Enterprise Storage 7.1 | All versions | 2.2-150200.12.17.2 |
| `jaxen` | SUSE:Enterprise Storage 7.1 | All versions | 2.0.0-150200.5.3.1 |
| `jdom` | SUSE:Enterprise Storage 7.1 | All versions | 1.1.3-150200.12.8.2 |
| `junit` | SUSE:Enterprise Storage 7.1 | All versions | 4.13.2-150200.3.15.2 |
| `objectweb-asm` | SUSE:Enterprise Storage 7.1 | All versions | 9.7-150200.3.15.2 |
| `xom` | SUSE:Enterprise Storage 7.1 | All versions | 1.3.9-150200.5.3.3 |
| `jdom` | SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 1.1-150000.5.3.1 |
| `jdom` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.1-150000.5.3.1 |
| `dom4j` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.1.4-150200.12.10.2 |
| `hamcrest` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.2-150200.12.17.2 |
| `jaxen` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.0.0-150200.5.3.1 |
| `jdom` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.1.3-150200.12.8.2 |
| `junit` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 4.13.2-150200.3.15.2 |
| `objectweb-asm` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 9.7-150200.3.15.2 |
| `xom` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.3.9-150200.5.3.3 |
| `dom4j` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.1.4-150200.12.10.2 |
| `hamcrest` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.2-150200.12.17.2 |
| `jaxen` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 2.0.0-150200.5.3.1 |
| `jdom` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.1.3-150200.12.8.2 |
| `junit` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.13.2-150200.3.15.2 |
| `objectweb-asm` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 9.7-150200.3.15.2 |
| `xom` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.3.9-150200.5.3.3 |
| `dom4j` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.1.4-150200.12.10.2 |
| `hamcrest` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.2-150200.12.17.2 |
| `jaxen` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.0.0-150200.5.3.1 |
| `jdom` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.1.3-150200.12.8.2 |
| `junit` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 4.13.2-150200.3.15.2 |
| `objectweb-asm` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 9.7-150200.3.15.2 |
| `xom` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.3.9-150200.5.3.3 |
| `dom4j` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 2.1.4-150200.12.10.2 |
| `hamcrest` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 2.2-150200.12.17.2 |
| `jaxen` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 2.0.0-150200.5.3.1 |
| `jdom` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.1.3-150200.12.8.2 |

Products: Apache Solr, Apache Tika, Debian Debian Linux, Fedoraproject Fedora, Jdom Jdom, Oracle Communications Messaging Server.

## How do I fix CVE-2021-33813?

Upgrade to a fixed version.

## Is CVE-2021-33813 being exploited?

There is no known exploitation of CVE-2021-33813 in the wild and no public exploit code.

## Other vulnerabilities in Debian Debian Linux

- [CVE-2019-17558](https://insights.sbomify.com/CVE-2019-17558/): Apache Solr VelocityResponseWriter Plug-In Remote Code Execution (high 7.5, exploited in the wild)
- [CVE-2019-0193](https://insights.sbomify.com/CVE-2019-0193/): Apache Solr DataImportHandler Code Injection (high 7.2, exploited in the wild)
- [CVE-2024-45216](https://insights.sbomify.com/CVE-2024-45216/): Apache Solr: Authentication bypass possible using a fake URL Path ending (critical 9.8)
- [CVE-2021-44548](https://insights.sbomify.com/CVE-2021-44548/): Apache Solr information disclosure vulnerability through DataImportHandler (critical 9.8)
- [CVE-2021-27905](https://insights.sbomify.com/CVE-2021-27905/): SSRF vulnerability with the Replication handler (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-33813 and fix it if it is affected.

What it is: CVE-2021-33813 is a high-severity vulnerability in Debian Debian Linux, published on 16 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2021-33813 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.jdom:jdom (Maven): affected all versions up to 2.0.2; no fix listed
- org.jdom:jdom (Maven): affected all versions up to 2.0.2; no fix listed
- solr (Bitnami): affected from 8.8.1; fixed in 8.8.2, 8.9.1
- org.jdom:jdom2 (Maven): affected all versions; fixed in 2.0.6.1
- org.jdom:jdom2 (Maven): affected all versions; fixed in 2.0.6.1

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-2021-33813/ (Markdown: https://insights.sbomify.com/CVE-2021-33813/index.md)
```

## Sources

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

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