HIGH 8.1

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)

ArtifactAffected versionsFixed in
com.h2database » h2
>= 1.4.198, < 2.0.202
2.0.202

Blast radius

1affected artifacts
3affected versions
3,605dependent artifacts (est.)
220,708dependent versions

35% of the dependent artifacts (1,296) still pull an affected version in their latest release.

DepthDependent 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

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.