WaratekVRT Sign in

CVE-2021-23463 h2database h2

Affected softwareh2database h2
Severity9.1 Critical CVSS 3.1 3 scores
Fixed in2.0.202
WeaknessXML external entity (XXE) (CWE-611)
Published10 Dec 2021
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 4 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 2.8% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.
Candidate fix https://github.com/h2database/h2database/commit/d83285fd2e48fb075780ee95badee6f5a15ea7f8%23diff-008c2e4462609982199cd83e7cf6f1d6b41296b516783f6752c44b9f15dc7bc3 : a commit: the change itself

How to mitigate CVE-2021-23463

Upgrade h2database h2 to 2.0.202 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.1 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.1 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H NVD Primary published
CVSS 3.1 8.1 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H report@snyk.io Secondary
CVSS 2.0 6.4 none AV:N/AC:L/Au:N/C:P/I:N/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.h2database:h2 1.4.198 2.0.202 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
osv com.h2database h2 generic ≥ 1.4.198 and < 2.0.202
nvd h2database h2 generic ≥ 1.4.198 and < 2.0.202

References

URLTags
https://github.com/h2database/h2database/commit/d83285fd2e48fb075780ee95badee6f5a15ea7f8%23diff-008c2e4462609982199cd83e7cf6f1d6b41296b516783f6752c44b9f15dc7bc3 commit
https://github.com/h2database/h2database/issues/3195 WEB
https://github.com/h2database/h2database/pull/3199 WEB
https://github.com/h2database/h2database/pull/3199#issuecomment-1002830390 WEB
https://github.com/boris-unckel/h2database/commit/f9ad6aef2bfa59eba2b4d3e7c4c32d2cce8e8b05 WEB
https://github.com/h2database/h2database WEB
https://security.netapp.com/advisory/ntap-20230818-0010 WEB
https://snyk.io/vuln/SNYK-JAVA-COMH2DATABASE-1769238 WEB
https://www.oracle.com/security-alerts/cpuapr2022.html WEB
https://security.netapp.com/advisory/ntap-20230818-0010/

Timeline

Published2021-12-10By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.