CVE-2021-23463
Improper Restriction of XML External Entity Reference in com.h2database:h2.
Description
H2 is an embeddable RDBMS written in Java. The package com.h2database:h2 from 1.4.198 and before 2.0.202 are vulnerable to XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object, when it receives parsed string data from org.h2.jdbc.JdbcResultSet.getSQLXML() method. If it executes the getSource() method when the parameter is DOMSource.class it will trigger the vulnerability.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.h2database » h2 | >= 1.4.198, < 2.0.202 | 2.0.202 |
Blast radius
35% of the dependent artifacts (1,296) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 30,656 |
| 2 hops | 93,717 |
| 3 hops | 60,641 |
| 4 hops | 29,968 |
| 5 hops | 4,639 |
| 6 hops | 1,087 |
Most used dependents
- org.owasp » dependency-check-maven1,289 usages
- com.atlassian.confluence » confluence724 usages
- org.dbunit » dbunit596 usages
- com.atlassian.jira » jira-core554 usages
- org.openmrs.test » openmrs-test514 usages
- org.finos.legend.engine » legend-engine-pure-code-compiled-core286 usages
- org.finos.legend.engine » legend-engine-language-pure-compiler253 usages
- com.atlassian.jira » atlassian-jira-pageobjects230 usages
- com.atlassian.jira » jira-func-tests212 usages
- com.atlassian.bamboo » atlassian-bamboo-web203 usages
- com.atlassian.confluence » confluence-test-support158 usages
- be.vlaanderen.dov » dov-neo-setup158 usages
- com.atlassian.confluence » confluence-webdriver-support143 usages
- org.ballerinalang » ballerina-runtime131 usages
- com.atlassian.confluence » atlassian-confluence-pageobjects119 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-2021-23463
- Webhttps://github.com/h2database/h2database/issues/3195
- Webhttps://github.com/h2database/h2database/pull/3199
- Webhttps://github.com/h2database/h2database/pull/3199#issuecomment-1002830390
- Webhttps://github.com/boris-unckel/h2database/commit/f9ad6aef2bfa59eba2b4d3e7c4c32d2cce8e8b05
- Webhttps://github.com/h2database/h2database/commit/d83285fd2e48fb075780ee95badee6f5a15ea7f8%23diff-008c2e4462609982199cd83e7cf6f1d6b41296b516783f6752c44b9f15dc7bc3
- Webhttps://github.com/h2database/h2database
- Webhttps://security.netapp.com/advisory/ntap-20230818-0010
- Webhttps://snyk.io/vuln/SNYK-JAVA-COMH2DATABASE-1769238
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
