Vulnerabilities in pkg:maven/org.apache.hive/hive-llap-common

PACKAGE
Advisory Identifier: GHSA-p953-3j66-hg45
Advisory Summary

CVE-2024-23953 is a MODERATE (CVSS 6.5) authentication bypass vulnerability (CWE-208: Observable Timing Discrepancy) affecting Hive llap common libraries in the Maven ecosystem. The issue involves apache hive vulnerable to observable timing discrepancy and authentication bypass by spoofing. Remediation is available by upgrading affected packages to version 4.0.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.hive/hive-llap-common

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-p953-3j66-hg45 CVE-2024-23953 MODERATE Apache Hive vulnerable to Observable Timing Discrepancy and Authentication Bypass by Spoofing

CVE-2024-23953 at a Glance

CVE Identifier CVE-2024-23953
GHSA Identifier GHSA-p953-3j66-hg45
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-208: Observable Timing Discrepancy
Affected Product Hive llap common
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/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 None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-23953

To remediate this vulnerability, upgrade all affected Hive llap common 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-llap-common fixed: 4.0.0
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-llap-common</artifactId>
    <version>4.0.0</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-2024-23953, 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 llap common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0), 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-208: Observable Timing Discrepancy, where two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not. In Hive llap common, 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

Use of Arrays.equals() in LlapSignerImpl in Apache Hive to compare message signatures allows attacker to forge a valid signature for an arbitrary message byte by byte. The attacker should be an authorized user of the product to perform this attack. Users are recommended to upgrade to version 4.0.0, which fixes this issue. The problem occurs when an application doesn’t use a constant-time algorithm for validating a signature. The method Arrays.equals() returns false right away when it sees that one of the input’s bytes are different. It means that the comparison time depends on the contents of the arrays. This little thing may allow an attacker to forge a valid signature for an arbitrary message byte by byte. So it might allow malicious users to submit splits/work with selected signatures to LLAP without running as a privileged user, potentially leading to DDoS attack. More details in the reference section.

CVE-2024-23953 Affected Hive llap common Versions

1 component(s)
Fixed Versions:
4.0.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hive:hive-llap-common
Maven
< 4.0.0
4.0.0

References

Frequently Asked Questions

What is CVE-2024-23953?
CVE-2024-23953 is a security vulnerability in Hive llap common involving Apache Hive vulnerable to Observable Timing Discrepancy and Authentication Bypass by Spoofing under CWE-208: Observable Timing Discrepancy.
Which Hive llap common versions are affected?
Affected versions include releases prior to 4.0.0 across affected packages: org.apache.hive:hive-llap-common.
What version fixes CVE-2024-23953?
Upgrading to 4.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hive-llap-common affected?
Yes, org.apache.hive:hive-llap-common is affected in releases prior to 4.0.0. Upgrade your dependency to 4.0.0 or later.
What is the CVSS score of CVE-2024-23953?
CVE-2024-23953 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-23953?
CVE-2024-23953 is classified under CWE-208: Observable Timing Discrepancy (Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not.).
How can I check Maven dependencies for CVE-2024-23953?
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-p953-3j66-hg45",
  "modified" : "2025-01-28T20:40:21Z",
  "published" : "2025-01-28T09:32:34Z",
  "aliases" : [ "CVE-2024-23953" ],
  "summary" : "Apache Hive vulnerable to Observable Timing Discrepancy and Authentication Bypass by Spoofing",
  "details" : "Use of Arrays.equals() in LlapSignerImpl in Apache Hive to compare message signatures allows attacker to forge a valid signature for an arbitrary message byte by byte. The attacker should be an authorized user of the product to perform this attack. Users are recommended to upgrade to version 4.0.0, which fixes this issue.\n\nThe problem occurs when an application doesn’t use a constant-time algorithm for validating a signature. The method Arrays.equals() returns false right away when it sees that one of the input’s bytes are different. It means that the comparison time depends on the contents of the arrays. This little thing may allow an attacker to forge a valid signature for an arbitrary message byte by byte. So it might allow malicious users to submit splits/work with selected signatures to LLAP without running as a privileged user, potentially leading to DDoS attack.\n\nMore details in the reference section.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-llap-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23953"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/hive/commit/b418e3c9f479ba8e7d31e6470306111002ffa809"
  }, {
    "type" : "WEB",
    "url" : "https://blog.gypsyengineer.com/en/security/preventing-timing-attacks-with-codeql.html"
  }, {
    "type" : "WEB",
    "url" : "https://cqr.company/web-vulnerabilities/timing-attacks"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/hive"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/HIVE-28030"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/0nloywj49nbtlc6l3c6363qvq7o1ztb7"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/01/28/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-208", "CWE-290" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-28T20:40:21Z",
    "nvd_published_at" : "2025-01-28T09:15:09Z"
  }
}