CVE-2016-3083: Hive Improper Certificate Validation Vulnerability

HIGH
Advisory Identifier: GHSA-gf2v-9hp6-44qg
CVSS 7.5
CWE-295
Published
Advisory Summary

CVE-2016-3083 is a HIGH (CVSS 7.5) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Hive libraries in the Maven ecosystem. The issue involves hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service vulnerable to improper certificate validation. Remediation is available by upgrading affected packages to version 1.2.2, 2.0.1.

CVE-2016-3083 at a Glance

CVE Identifier CVE-2016-3083
GHSA Identifier GHSA-gf2v-9hp6-44qg
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Hive
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2016-3083

To remediate this vulnerability, upgrade all affected Hive dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.hive:hive fixed: 1.2.2
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive</artifactId>
    <version>1.2.2</version>
</dependency>
org.apache.hive:hive fixed: 2.0.1
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive</artifactId>
    <version>2.0.1</version>
</dependency>
org.apache.hive:hive-service fixed: 1.2.2
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-service</artifactId>
    <version>1.2.2</version>
</dependency>
org.apache.hive:hive-service fixed: 2.0.1
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-service</artifactId>
    <version>2.0.1</version>
</dependency>
org.apache.hive:hive-exec fixed: 1.2.2
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-exec</artifactId>
    <version>1.2.2</version>
</dependency>
org.apache.hive:hive-exec fixed: 2.0.1
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-exec</artifactId>
    <version>2.0.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.hive

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2016-3083, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.hive

Analyze the terminal output to locate any version of Hive in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.hive command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Hive, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Apache Hive (JDBC + HiveServer2) implements SSL for plain TCP and HTTP connections (it supports both transport modes). While validating the server's certificate during the connection setup, the client in Apache Hive before 1.2.2 and 2.0.x before 2.0.1 doesn't seem to be verifying the common name attribute of the certificate. In this way, if a JDBC client sends an SSL request to server abc.com, and the server responds with a valid certificate (certified by CA) but issued to xyz.com, the client will accept that as a valid certificate and the SSL handshake will go through.

CVE-2016-3083 Affected Hive Versions

6 component(s)
Fixed Versions:
1.2.22.0.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hive:hive
Maven
< 1.2.2
1.2.2
org.apache.hive:hive
Maven
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
2.0.1
org.apache.hive:hive-service
Maven
< 1.2.2
1.2.2
org.apache.hive:hive-service
Maven
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
2.0.1
org.apache.hive:hive-exec
Maven
< 1.2.2
1.2.2
org.apache.hive:hive-exec
Maven
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
2.0.1

References

Frequently Asked Questions

What is CVE-2016-3083?
CVE-2016-3083 is a security vulnerability in Hive involving hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service vulnerable to Improper Certificate Validation under CWE-295: Improper Certificate Validation.
Which Hive versions are affected?
Affected versions include releases prior to 1.2.2, 2.0.1 across affected packages: org.apache.hive:hive, org.apache.hive:hive-service, org.apache.hive:hive-exec.
What version fixes CVE-2016-3083?
Upgrading to 1.2.2, 2.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hive affected?
Yes, org.apache.hive:hive is affected in releases prior to 1.2.2, 2.0.1. Upgrade your dependency to 1.2.2, 2.0.1 or later.
Is hive-service affected?
Yes, org.apache.hive:hive-service is affected in releases prior to 1.2.2, 2.0.1. Upgrade your dependency to 1.2.2, 2.0.1 or later.
What is the CVSS score of CVE-2016-3083?
CVE-2016-3083 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2016-3083?
CVE-2016-3083 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Maven dependencies for CVE-2016-3083?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.hive'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gf2v-9hp6-44qg",
  "modified" : "2022-09-17T00:32:32Z",
  "published" : "2019-03-14T15:40:32Z",
  "aliases" : [ "CVE-2016-3083" ],
  "summary" : "org.apache.hive:hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service vulnerable to Improper Certificate Validation ",
  "details" : "Apache Hive (JDBC + HiveServer2) implements SSL for plain TCP and HTTP connections (it supports both transport modes). While validating the server's certificate during the connection setup, the client in Apache Hive before 1.2.2 and 2.0.x before 2.0.1 doesn't seem to be verifying the common name attribute of the certificate. In this way, if a JDBC client sends an SSL request to server abc.com, and the server responds with a valid certificate (certified by CA) but issued to xyz.com, the client will accept that as a valid certificate and the SSL handshake will go through.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ],
    "versions" : [ "2.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ],
    "versions" : [ "2.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-exec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-exec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ],
    "versions" : [ "2.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-3083"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-gf2v-9hp6-44qg"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/0851bcf85635385f94cdaa008053802d92b4aab0a3075e30ed171192@%3Cdev.hive.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/98669"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:36:59Z",
    "nvd_published_at" : null
  }
}