Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

CVE-2022-39135: Apache Calcite XML handling can be tricked

CVE-2022-39135 · published 4 years ago
Summary

Certain functions in Apache Calcite versions before 1.32 let specially crafted XML data cause the software to read external files or network resources. This could let an attacker gain information or cause unwanted actions when those functions are used. Upgrade to version 1.32 or later, or disable the affected functions, to stop the risk.

What to do
  • Update apache org.apache.calcite:calcite-core to version 1.32.0.
  • Update org.apache.calcite:calcite-core to version 1.32.0.
  • Update apache calcite to version 1.32.0 or later.
Affected software
Ecosystem VendorProductAffected versions
maven apache org.apache.calcite:calcite-core < 1.32.0
Fix: upgrade to 1.32.0
– apache calcite >= 1.22.0, < 1.32.0
cpe:2.3:a:apache:calcite:*:*:*:*:*:*:*:*
maven – org.apache.calcite:calcite-core >= 1.22.0, < 1.32.0
Fix: upgrade to 1.32.0
Original advisory text
Apache Calcite: potential XEE attacks
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
9.8 Critical
Exploitation
2% chance of attack within 30 days
Type
CWE-611XML External Entity (XXE)
Timeline
Published11 Sep 2022
Updated4 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta