Vulnerability · Published Sep 11, 2022 · Assigned by apache

CVE-2022-39135Apache Calcite: potential XEE attacks

Critical 9.8

In plain English

A critical-severity XML external entity in Apache Calcite from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.2%top 17.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.calcite:calcite-core1.32.0GHSA-fj2m-w3wv-x9pr

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Calcite 1.22.0 – before 1.32.0

Weakness: CWE-611

References