Bug 2033392 (CVE-2021-23463) - CVE-2021-23463 h2database: XXE injection vulnerability
Summary: CVE-2021-23463 h2database: XXE injection vulnerability
Keywords:
Status: NEW
Alias: CVE-2021-23463
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2033395
TreeView+ depends on / blocked
 
Reported: 2021-12-16 16:40 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-07 08:32 UTC (History)
26 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the h2database. This flaw allows an attacker to benefit from XML External Entity (XXE) Injection via the org.h2.jdbc.JdbcSQLXML class object. A user may trigger the vulnerability by sending malicious data.
Clone Of:
Environment:
Last Closed:
Embargoed:
mrobson: needinfo-


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-12-16 16:40:07 UTC
The package com.h2database:h2 from 0 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:
https://github.com/h2database/h2database/issues/3195
https://snyk.io/vuln/SNYK-JAVA-COMH2DATABASE-1769238

Upstream patch:
https://github.com/h2database/h2database/pull/3199

Comment 1 juneau 2021-12-16 20:13:13 UTC
Affected component found in service registry. Code not reviewed to determine if method is in use.


Note You need to log in before you can comment on or make changes to this bug.