CVE-2015-7521: Hive Hive, Org.apache.hive:hive-exec, And Org.apache.hive:hive-service Vulnerability

HIGH
Advisory Identifier: GHSA-83r3-c79w-f6wc
CVSS 8.3
CWE-287
Published
Advisory Summary

CVE-2015-7521 is a HIGH (CVSS 8.3) hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service vulnerability (CWE-287: Improper Authentication) affecting Hive libraries in the Maven ecosystem. The issue involves hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service. Remediation is available by upgrading affected packages to version 1.2.2.

CVE-2015-7521 at a Glance

CVE Identifier CVE-2015-7521
GHSA Identifier GHSA-83r3-c79w-f6wc
Severity HIGH
CVSS v3.1 Base Score 8.3
CWE Classification CWE-287: Improper Authentication
Affected Product Hive
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.3

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:C/C:L/I:L/A:L).

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

How to Fix CVE-2015-7521

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-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-service fixed: 1.2.2
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-service</artifactId>
    <version>1.2.2</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-2015-7521, 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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

The authorization framework in Apache Hive 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0 and 1.2.1, on clusters protected by Ranger and SqlStdHiveAuthorization, allows attackers to bypass intended parent table access restrictions via unspecified partition-level operations.

CVE-2015-7521 Affected Hive Versions

3 component(s)
Fixed Versions:
1.2.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hive:hive
Maven
≥ 1.0.0
< 1.2.2
1.2.2
org.apache.hive:hive-exec
Maven
≥ 1.0.0
< 1.2.2
1.2.2
org.apache.hive:hive-service
Maven
≥ 1.0.0
< 1.2.2
1.2.2

References

Frequently Asked Questions

What is CVE-2015-7521?
CVE-2015-7521 is a security vulnerability in Hive involving hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service under CWE-287: Improper Authentication.
Which Hive versions are affected?
Affected versions include releases prior to 1.2.2 across affected packages: org.apache.hive:hive, org.apache.hive:hive-exec, org.apache.hive:hive-service.
What version fixes CVE-2015-7521?
Upgrading to 1.2.2 (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. Upgrade your dependency to 1.2.2 or later.
Is hive-exec affected?
Yes, org.apache.hive:hive-exec is affected in releases prior to 1.2.2. Upgrade your dependency to 1.2.2 or later.
What is the CVSS score of CVE-2015-7521?
CVE-2015-7521 has a CVSS v3.1 base score of 8.3 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2015-7521?
CVE-2015-7521 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Maven dependencies for CVE-2015-7521?
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-83r3-c79w-f6wc",
  "modified" : "2021-09-03T22:28:49Z",
  "published" : "2018-11-21T22:23:49Z",
  "aliases" : [ "CVE-2015-7521" ],
  "summary" : "High severity vulnerability that affects org.apache.hive:hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service",
  "details" : "The authorization framework in Apache Hive 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0 and 1.2.1, on clusters protected by Ranger and SqlStdHiveAuthorization, allows attackers to bypass intended parent table access restrictions via unspecified partition-level operations.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-exec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-service"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7521"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-83r3-c79w-f6wc"
  }, {
    "type" : "WEB",
    "url" : "http://mail-archives.apache.org/mod_mbox/hive-user/201601.mbox/%3C20160128205008.2154F185EB%40minotaur.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/135836/Apache-Hive-Authorization-Bypass.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/01/28/12"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/537549/100/0/threaded"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:24:07Z",
    "nvd_published_at" : null
  }
}