INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2021-23463

Improper Restriction of XML External Entity Reference in com.h2database:h2.

CVE-2021-23463 ยท 2021-12-16 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Information exposure
Affected
com.h2database:h2 (Maven)
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS
2.8% chance of exploitation in 30 days

How it works, in short

Retrieving SQLXML as a DOM source makes H2 parse XML with external entities enabled, so attacker-supplied entities can read or fetch resources. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.