CVE-2020-13955 Missing Authentication for Critical Function in Apache Calcite

Medium 5.9 Published Updated

Apache Calcite disables HTTPS hostname verification, allowing man-in-the-middle attacks and information leakage when connecting to external data sources.

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

What is CVE-2020-13955?

CVE-2020-13955 is a medium-severity vulnerability in Apache Calcite, published on 9 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

HttpUtils#getURLConnection method disables explicitly hostname verification for HTTPS connections making clients vulnerable to man-in-the-middle attacks. Calcite uses internally this method to connect with Druid and Splunk so information leakage may happen when using the respective Calcite adapters. The method itself is in a utility class so people may use it to create vulnerable HTTPS connections for other applications. From Apache Calcite 1.26 onwards, the hostname verification will be performed using the default JVM truststore.

Weakness: CWE-295

Which versions are affected by CVE-2020-13955?

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

PackageAffectedFixed in
org.apache.calcite:calcite-core MavenAll versions1.26.0
org.apache.calcite:calcite-core MavenAll versions1.26.0
org.apache.calcite:calcite-druid MavenAll versions1.26.0
org.apache.calcite:calcite-druid MavenAll versions1.26.0
org.apache.calcite:calcite-splunk MavenAll versions1.26.0
org.apache.calcite:calcite-splunk MavenAll versions1.26.0

Products include Apache Calcite.

How do I fix CVE-2020-13955?

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

Is CVE-2020-13955 being exploited?

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

Sources

Also known as GHSA-hxp5-8pgq-mgv9.

Is CVE-2020-13955 in your software?

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

Check your SBOMs for free