Vulnerabilities in pkg:maven/org.apache.hbase/hbase-thrift

PACKAGE
Advisory Identifier: GHSA-r86j-2gc6-2cq9
Advisory Summary

CVE-2018-8025 is a HIGH (CVSS 8.1) hbase-thrift vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Hbase thrift libraries in the Maven ecosystem. The issue involves hbase-thrift. Remediation is available by upgrading affected packages to version 2.0.1, 1.4.5, 1.3.2.1, 1.2.6.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.hbase/hbase-thrift

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.hbase/hbase-thrift. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r86j-2gc6-2cq9 CVE-2018-8025 HIGH Race condition in org.apache.hbase:hbase-thrift

CVE-2018-8025 at a Glance

CVE Identifier CVE-2018-8025
GHSA Identifier GHSA-r86j-2gc6-2cq9
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Hbase thrift
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:H/PR:N/UI:N/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2018-8025

To remediate this vulnerability, upgrade all affected Hbase thrift 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.hbase:hbase-thrift fixed: 2.0.1
<dependency>
    <groupId>org.apache.hbase</groupId>
    <artifactId>hbase-thrift</artifactId>
    <version>2.0.1</version>
</dependency>
org.apache.hbase:hbase-thrift fixed: 1.4.5
<dependency>
    <groupId>org.apache.hbase</groupId>
    <artifactId>hbase-thrift</artifactId>
    <version>1.4.5</version>
</dependency>
org.apache.hbase:hbase-thrift fixed: 1.3.2.1
<dependency>
    <groupId>org.apache.hbase</groupId>
    <artifactId>hbase-thrift</artifactId>
    <version>1.3.2.1</version>
</dependency>
org.apache.hbase:hbase-thrift fixed: 1.2.6.1
<dependency>
    <groupId>org.apache.hbase</groupId>
    <artifactId>hbase-thrift</artifactId>
    <version>1.2.6.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.hbase

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.hbase 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Hbase thrift, 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

An issue in Apache HBase affects the optional "Thrift 1" API server when running over HTTP. There is a race-condition which could lead to authenticated sessions being incorrectly applied to users, e.g. one authenticated user would be considered a different user or an unauthenticated user would be treated as an authenticated user. https://issues.apache.org/jira/browse/HBASE-20664 implements a fix for this issue. It has been fixed in versions: 1.2.6.1, 1.3.2.1, 1.4.5, 2.0.1.

CVE-2018-8025 Affected Hbase thrift Versions

4 component(s)
Fixed Versions:
2.0.11.4.51.3.2.11.2.6.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hbase:hbase-thrift
Maven
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
2.0.1
org.apache.hbase:hbase-thrift
Maven
≥ 1.4.0
< 1.4.5
1.4.5
org.apache.hbase:hbase-thrift
Maven
≥ 1.3.0
< 1.3.2.1
1.3.2.1
org.apache.hbase:hbase-thrift
Maven
< 1.2.6.1
1.2.6.1

References

Frequently Asked Questions

What is CVE-2018-8025?
CVE-2018-8025 is a security vulnerability in Hbase thrift involving hbase-thrift under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Hbase thrift versions are affected?
Affected versions include releases prior to 2.0.1, 1.4.5, 1.3.2.1, 1.2.6.1 across affected packages: org.apache.hbase:hbase-thrift.
What version fixes CVE-2018-8025?
Upgrading to 2.0.1, 1.4.5, 1.3.2.1, 1.2.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hbase-thrift affected?
Yes, org.apache.hbase:hbase-thrift is affected in releases prior to 2.0.1, 1.4.5, 1.3.2.1, 1.2.6.1. Upgrade your dependency to 2.0.1, 1.4.5, 1.3.2.1, 1.2.6.1 or later.
What is the CVSS score of CVE-2018-8025?
CVE-2018-8025 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-8025?
CVE-2018-8025 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check Maven dependencies for CVE-2018-8025?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.hbase'. 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-r86j-2gc6-2cq9",
  "modified" : "2024-03-04T23:31:45Z",
  "published" : "2018-10-18T18:05:02Z",
  "aliases" : [ "CVE-2018-8025" ],
  "summary" : "Race condition in org.apache.hbase:hbase-thrift",
  "details" : "An issue in Apache HBase affects the optional \"Thrift 1\" API server when running over HTTP. There is a race-condition which could lead to authenticated sessions being incorrectly applied to users, e.g. one authenticated user would be considered a different user or an unauthenticated user would be treated as an authenticated user. https://issues.apache.org/jira/browse/HBASE-20664 implements a fix for this issue. It has been fixed in versions: 1.2.6.1, 1.3.2.1, 1.4.5, 2.0.1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hbase:hbase-thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ],
    "versions" : [ "2.0.0" ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hbase:hbase-thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.4.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hbase:hbase-thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "1.3.2.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.3.2.0"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hbase:hbase-thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.6.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.2.6.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-8025"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/hbase/commit/0c42acbdf86d08af3003105a26a2201f75f2e2c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/hbase/commit/30e98b4455f971c9cb3c02ac7b2daeebe4ee6f2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/hbase/commit/625d4d002620139f49c8201f95b789b6a715cd4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/hbase/commit/7fe07075b35a816725ba18f6dd43d3fa84e08f9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/hbase/commit/bf25c1cb7221178388baaa58f0b16a408e151a6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-r86j-2gc6-2cq9"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/HBASE-20664"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/a919e38f587c714c386a01d40fc8f45bd4219a65aaf2dc0bb4eccc96@%3Cdev.hbase.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/104554"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:53:58Z",
    "nvd_published_at" : null
  }
}