CVE-2018-11777: Improper Authentication in hive Hive-exec Vulnerability

HIGH
Advisory Identifier: GHSA-rrfq-g5fq-fc9c
CVSS 8.1
Published
Advisory Summary

CVE-2018-11777 is a HIGH (CVSS 8.1) hive-exec vulnerability (General Security Weakness) affecting Improper Authentication in hive libraries in the Maven ecosystem. The issue involves hive-exec. Remediation is available by upgrading affected packages to version 3.1.1, 2.3.4.

CVE-2018-11777 at a Glance

CVE Identifier CVE-2018-11777
GHSA Identifier GHSA-rrfq-g5fq-fc9c
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification General Security Weakness
Affected Product Improper Authentication in hive
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.1

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

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

How to Fix CVE-2018-11777

To remediate this vulnerability, upgrade all affected Improper Authentication in 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-exec fixed: 3.1.1
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-exec</artifactId>
    <version>3.1.1</version>
</dependency>
org.apache.hive:hive-exec fixed: 2.3.4
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-exec</artifactId>
    <version>2.3.4</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-2018-11777, 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 Improper Authentication in hive in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), 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 General Security Weakness. In Improper Authentication 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

In Apache Hive 2.3.3, 3.1.0 and earlier, local resources on HiveServer2 machines are not properly protected against malicious user if ranger, sentry or sql standard authorizer is not in use.

CVE-2018-11777 Affected Improper Authentication in hive Versions

2 component(s)
Fixed Versions:
3.1.12.3.4
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hive:hive-exec
Maven
≥ 3.0.0
< 3.1.1
3.1.1
org.apache.hive:hive-exec
Maven
< 2.3.4
2.3.4

References

Frequently Asked Questions

What is CVE-2018-11777?
CVE-2018-11777 is a security vulnerability in Improper Authentication in hive involving hive-exec under General Security Weakness.
Which Improper Authentication in hive versions are affected?
Affected versions include releases prior to 3.1.1, 2.3.4 across affected packages: org.apache.hive:hive-exec.
What version fixes CVE-2018-11777?
Upgrading to 3.1.1, 2.3.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hive-exec affected?
Yes, org.apache.hive:hive-exec is affected in releases prior to 3.1.1, 2.3.4. Upgrade your dependency to 3.1.1, 2.3.4 or later.
What is the CVSS score of CVE-2018-11777?
CVE-2018-11777 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2018-11777?
CVE-2018-11777 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2018-11777?
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-rrfq-g5fq-fc9c",
  "modified" : "2022-09-14T22:08:31Z",
  "published" : "2018-11-21T22:25:04Z",
  "aliases" : [ "CVE-2018-11777" ],
  "summary" : "Improper Authentication in hive:hive-exec",
  "details" : "In Apache Hive 2.3.3, 3.1.0 and earlier, local resources on HiveServer2 machines are not properly protected against malicious user if ranger, sentry or sql standard authorizer is not in use.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-exec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-exec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-11777"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-rrfq-g5fq-fc9c"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/963c8e2516405c9b532b4add16c03b2c5db621e0c83e80f45049cbbb@%3Cdev.hive.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/105886"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:55:42Z",
    "nvd_published_at" : null
  }
}