CVE-2022-39135: Apache Calcite before 1.32.0 vulnerable to potential XML External Entity (XXE) attack
CVE-2022-39135 · Severity: critical · CVSS 9.8 · Published 2022-09-12
In Apache Calcite prior to version 1.32.0 the SQL operators EXISTS_NODE, EXTRACT_XML, XML_TRANSFORM and EXTRACT_VALUE 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.
Yes. org.apache.calcite:calcite-core (Maven): upgrade to 1.32.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-39135?
Check whether you run org.apache.calcite:calcite-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
org.apache.calcite:calcite-core (Maven): upgrade to 1.32.0 or later
# set org.apache.calcite:calcite-core to 1.32.0 in your pom.xml or build.gradle