CVE-2020-10683
dom4j allows External Entities by default which might enable XXE attacks
Description
dom4j before 2.1.3 allows external DTDs and External Entities by default, which might enable XXE attacks. However, there is popular external documentation from OWASP showing how to enable the safe, non-default behavior in any application that uses dom4j.
Note: This advisory applies to dom4j:dom4j version 1.x legacy artifacts. To resolve this a change to the latest version of org.dom4j:dom4j is recommended.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| dom4j » dom4j | <= 1.6.1 | - |
| org.dom4j » dom4j | < 2.0.3>= 2.1.0, < 2.1.3 | 2.0.3, 2.1.3 |
Blast radius
69% of the dependent artifacts (34,533) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 128,343 |
| 2 hops | 812,150 |
| 3 hops | 1,076,158 |
| 4 hops | 1,135,370 |
| 5 hops | 712,933 |
| 6 hops | 142,233 |
Most used dependents
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-release-plugin29,114 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.apache.maven.plugins » maven-checkstyle-plugin11,720 usages
- org.apache.maven.plugins » maven-site-plugin9,107 usages
- org.apache.maven.plugins » maven-plugin-plugin6,502 usages
- org.codehaus.mojo » versions-maven-plugin5,371 usages
- org.reflections » reflections5,225 usages
- org.hibernate » hibernate-core4,859 usages
- org.hibernate » hibernate-validator4,490 usages
- org.springframework.boot » spring-boot-starter-data-jpa4,154 usages
- com.zaxxer » HikariCP4,006 usages
- org.apache.poi » poi-ooxml3,690 usages
- org.freemarker » freemarker3,450 usages
- org.codehaus.mojo » cobertura-maven-plugin3,365 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-10683
- Webhttps://github.com/dom4j/dom4j/issues/87
- Webhttps://github.com/dom4j/dom4j/commit/1707bf3d898a8ada3b213acb0e3b38f16eaae73d
- Webhttps://github.com/dom4j/dom4j/commit/a8228522a99a02146106672a34c104adbda5c658
- Webhttps://www.oracle.com/security-alerts/cpuoct2021.html
- Webhttps://www.oracle.com/security-alerts/cpuoct2020.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2020.html
- Webhttps://www.oracle.com/security-alerts/cpujan2022.html
- Webhttps://www.oracle.com/security-alerts/cpujan2021.html
- Webhttps://www.oracle.com/security-alerts/cpuApr2021.html
- Webhttps://www.oracle.com//security-alerts/cpujul2021.html
- Webhttps://usn.ubuntu.com/4575-1
- Webhttps://security.netapp.com/advisory/ntap-20200518-0002
- Webhttps://lists.apache.org/thread.html/rb1b990d7920ae0d50da5109b73b92bab736d46c9788dd4b135cb1a51@%3Cnotifications.freemarker.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r91c64cd51e68e97d524395474eaa25362d564572276b9917fcbf5c32@%3Cdev.velocity.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r51f3f9801058e47153c0ad9bc6209d57a592fc0e7aefd787760911b8@%3Cdev.velocity.apache.org%3E
- Webhttps://github.com/dom4j/dom4j/releases/tag/version-2.1.3
- Webhttps://github.com/dom4j/dom4j/commits/version-2.0.3
- Packagehttps://github.com/dom4j/dom4j
- Webhttps://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html
- Webhttps://bugzilla.redhat.com/show_bug.cgi?id=1694235
- Webhttp://lists.opensuse.org/opensuse-security-announce/2020-05/msg00061.html
