CVE-2022-39135

Improper Restriction of XML External Entity Reference in maven/org.apache.calcite/calcite-core

Identifiers

CVE-2022-39135

Package Slug

maven/org.apache.calcite/calcite-core

Vulnerability

Improper Restriction of XML External Entity Reference

Description

In Apache Calcite prior to version 1.32.0 the SQL operators EXISTSNODE, EXTRACTXML, XMLTRANSFORM and EXTRACTVALUE do not restrict XML External Entity references in their configuration, which makes them vulnerable to a potential XML External Entity (XXE) attack. Therefore any client exposing these operators, typically by using Oracle dialect (the first three) or MySQL dialect (the last one), is affected by this vulnerability (the extent of it will depend on the user under which the application is running). From Apache Calcite 1.32.0 onwards, Document Type Declarations and XML External Entity resolution are disabled on the impacted operators.

Affected Versions

All versions before 1.32.0

Solution

Upgrade to version 1.32.0 or above.

Last Modified

2022-09-15

source