# CVE-2018-1000632: Dom4j contains a XML Injection vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 6.57% (percentile 95, 2026-11-26)
- **CWE:** CWE-91
- **Aliases:** GHSA-6pcc-3rfx-4gpm
- **Published:** 2018-08-20T19:00:00.000Z
- **Modified:** 2026-06-17T01:32:58.903Z

## Who should check

- Projects that depend on Maven package org.dom4j:dom4j (\< 2.0.3)
- Projects that depend on Maven package dom4j:dom4j (\<= 1.6.1)
- Anyone running n/a (versions: see the vendor advisory)

## Description

dom4j version prior to version 2.1.1 contains a CWE-91: XML Injection vulnerability in Class: Element. Methods: addElement, addAttribute that can result in an attacker tampering with XML documents through XML injection. This attack appear to be exploitable via an attacker specifying attributes or elements in the XML document. This vulnerability appears to have been fixed in 2.1.1 or later.

## Affected and fixed versions

- Maven `org.dom4j:dom4j`: affected \< 2.0.3; fixed 2.0.3, 2.1.1 (osv)
- Maven `dom4j:dom4j`: affected \<= 1.6.1; fixed no fix listed yet (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade org.dom4j:dom4j to one of 2.0.3, 2.1.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-1000632. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-1000632.md
Affected: org.dom4j:dom4j < 2.0.3; dom4j:dom4j <= 1.6.1
Fixed in: 2.0.3, 2.1.1

Steps:
1. Search this machine and project for org.dom4j:dom4j (Maven), dom4j:dom4j (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-1000632 being exploited?

There is no confirmed exploitation: CVE-2018-1000632 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 6.57% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-1000632?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2018-1000632?

org.dom4j:dom4j \< 2.0.3; dom4j:dom4j \<= 1.6.1.

### Is there a fix for CVE-2018-1000632?

Yes. Fixed in 2.0.3, 2.1.1. Upgrade org.dom4j:dom4j to one of 2.0.3, 2.1.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2018-1000632?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2019:0364>
- vendor: <https://access.redhat.com/errata/RHSA-2019:0362>
- vendor: <https://access.redhat.com/errata/RHSA-2019:0365>
- vendor: <https://access.redhat.com/errata/RHSA-2019:0380>
- vendor: <https://access.redhat.com/errata/RHSA-2019:1160>
- vendor: <https://access.redhat.com/errata/RHSA-2019:1162>
- vendor: <https://access.redhat.com/errata/RHSA-2019:1159>
- vendor: <https://access.redhat.com/errata/RHSA-2019:1161>
- vendor: <https://access.redhat.com/errata/RHSA-2019:3172>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IOOVVCRQE6ATFD2JM2EMDXOQXTRIVZGP/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJULAHVR3I5SX7OSMXAG75IMNSAYOXGA/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-1000632>
- vendor: <https://github.com/advisories/GHSA-6pcc-3rfx-4gpm>
- patch: <https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html>
- patch: <https://github.com/dom4j/dom4j/commit/e598eb43d418744c4dbf62f647dd2381c9ce9387>
- patch: <https://github.com/dom4j/dom4j/commit/c2a99d7dee8ce7a4e5bef134bb781a6672bd8a0f>
- exploit: <https://ihacktoprotect.com/post/dom4j-xml-injection/>
- other: <https://lists.debian.org/debian-lts-announce/2018/09/msg00028.html>
- other: <https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451%40%3Csolr-user.lucene.apache.org%3E>
- other: <https://lists.apache.org/thread.html/7f6e120e6ed473f4e00dde4c398fc6698eb383bd7857d20513e989ce%40%3Cdev.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/4a77652531d62299a30815cf5f233af183425db8e3c9a824a814e768%40%3Cdev.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/5a020ecaa3c701f408f612f7ba2ee37a021644c4a39da2079ed3ddbc%40%3Ccommits.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/00571f362a7a2470fba50a31282c65637c40d2e21ebe6ee535a4ed74%40%3Ccommits.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/d7d960b2778e35ec9b4d40c8efd468c7ce7163bcf6489b633491c89f%40%3Cdev.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/9d4c1af6f702c3d6d6f229de57112ddccac8ce44446a01b7937ab9e0%40%3Ccommits.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/7e9e78f0e4288fac6591992836d2a80d4df19161e54bd71ab4b8e458%40%3Cdev.maven.apache.org%3E>
- other: <https://www.oracle.com/security-alerts/cpuapr2020.html>
- other: <https://www.oracle.com/security-alerts/cpujul2020.html>
- other: <https://github.com/dom4j/dom4j/issues/48>
- other: <https://security.netapp.com/advisory/ntap-20190530-0001/>
- other: <https://www.oracle.com/security-alerts/cpuApr2021.html>
- other: <https://lists.apache.org/thread.html/rb1b990d7920ae0d50da5109b73b92bab736d46c9788dd4b135cb1a51%40%3Cnotifications.freemarker.apache.org%3E>
- other: <https://lists.apache.org/thread.html/708d94141126eac03011144a971a6411fcac16d9c248d1d535a39451@%3Csolr-user.lucene.apache.org%3E>
- other: <https://lists.apache.org/thread.html/7e9e78f0e4288fac6591992836d2a80d4df19161e54bd71ab4b8e458@%3Cdev.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/7f6e120e6ed473f4e00dde4c398fc6698eb383bd7857d20513e989ce@%3Cdev.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/9d4c1af6f702c3d6d6f229de57112ddccac8ce44446a01b7937ab9e0@%3Ccommits.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/d7d960b2778e35ec9b4d40c8efd468c7ce7163bcf6489b633491c89f@%3Cdev.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rb1b990d7920ae0d50da5109b73b92bab736d46c9788dd4b135cb1a51@%3Cnotifications.freemarker.apache.org%3E>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IOOVVCRQE6ATFD2JM2EMDXOQXTRIVZGP>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJULAHVR3I5SX7OSMXAG75IMNSAYOXGA>
- other: <https://security.netapp.com/advisory/ntap-20190530-0001>
- other: <https://lists.apache.org/thread.html/5a020ecaa3c701f408f612f7ba2ee37a021644c4a39da2079ed3ddbc@%3Ccommits.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/4a77652531d62299a30815cf5f233af183425db8e3c9a824a814e768@%3Cdev.maven.apache.org%3E>
- other: <https://lists.apache.org/thread.html/00571f362a7a2470fba50a31282c65637c40d2e21ebe6ee535a4ed74@%3Ccommits.maven.apache.org%3E>
- other: <https://ihacktoprotect.com/post/dom4j-xml-injection>
- other: <https://github.com/dom4j/dom4j>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-1000632>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6pcc-3rfx-4gpm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2018-1000632> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-1000632>
