CVE-2020-13955
Missing Authentication for Critical Function in Apache Calcite
Description
"HttpUtils#getURLConnection method disables explicitly hostname verification for HTTPS connections making clients vulnerable to man-in-the-middle attacks. Calcite uses this method internally 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."
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.calcite » calcite-core | < 1.26.0 | 1.26.0 |
| org.apache.calcite » calcite-druid | < 1.26.0 | 1.26.0 |
| org.apache.calcite » calcite-splunk | < 1.26.0 | 1.26.0 |
Blast radius
72% of the dependent artifacts (1,804) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 87,484 |
| 2 hops | 196,648 |
| 3 hops | 103,644 |
| 4 hops | 68,975 |
| 5 hops | 17,912 |
| 6 hops | 4,636 |
Most used dependents
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.spark » spark-catalyst502 usages
- org.apache.solr » solr-core500 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-common305 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.hive » hive-service301 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-13955
- Webhttps://github.com/apache/calcite/commit/43eeafcbac29d02c72bd520c003cdfc571de2d15
- Webhttps://issues.apache.org/jira/browse/CALCITE-4298
- Webhttps://lists.apache.org/thread.html/r0b0fbe2038388175951ce1028182d980f9e9a7328be13d52dab70bb3%40%3Cdev.calcite.apache.org%3E
