CVE-2022-39135 Apache Calcite: potential XEE attacks

Critical 9.8 Published Updated

Attackers can exploit XML External Entity vulnerabilities in Apache Calcite SQL operators to read sensitive data or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-39135?

CVE-2022-39135 is a critical vulnerability in Apache Calcite, published on 11 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Calcite 1.22.0 introduced the SQL operators EXISTS_NODE, EXTRACT_XML, XML_TRANSFORM and EXTRACT_VALUE do not restrict XML External Entity references in their configuration, making 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.

Weakness: CWE-611

Which versions are affected by CVE-2022-39135?

2 open source packages ship an affected version, including org.apache.calcite:calcite-core. It affects 1 product.

PackageAffectedFixed in
org.apache.calcite:calcite-core MavenFrom 1.22.01.32.0
org.apache.calcite:calcite-core MavenFrom 1.22.01.32.0

Products include Apache Calcite.

How do I fix CVE-2022-39135?

Upgrade org.apache.calcite:calcite-core to 1.32.0 or later.

Is CVE-2022-39135 being exploited?

There is no known exploitation of CVE-2022-39135 in the wild and no public exploit code.

Sources

Also known as GHSA-fj2m-w3wv-x9pr.

Is CVE-2022-39135 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free