CVE-2024-29869: Hive exec Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-c476-j253-5rgq
CVSS 5.5
CWE-732
Published
Advisory Summary

CVE-2024-29869 is a MODERATE (CVSS 5.5) remote code execution vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Hive exec libraries in the Maven ecosystem. The issue involves apache hive incorrectly assigns permissions for a critical resource. Remediation is available by upgrading affected packages to version 4.0.1.

CVE-2024-29869 at a Glance

CVE Identifier CVE-2024-29869
GHSA Identifier GHSA-c476-j253-5rgq
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Hive exec
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2024-29869

To remediate this vulnerability, upgrade all affected Hive exec 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: 4.0.1
<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-exec</artifactId>
    <version>4.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-2024-29869, 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 exec in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.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 CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Hive exec, 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

Hive creates a credentials file to a temporary directory in the file system with permissions 644 by default when the file permissions are not set explicitly. Any unauthorized user having access to the directory can read the sensitive information written into this file. Users are recommended to upgrade to version 4.0.1, which fixes this issue.

CVE-2024-29869 Affected Hive exec Versions

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

References

Frequently Asked Questions

What is CVE-2024-29869?
CVE-2024-29869 is a security vulnerability in Hive exec involving Apache Hive Incorrectly Assigns Permissions for a Critical Resource under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Hive exec versions are affected?
Affected versions include releases prior to 4.0.1 across affected packages: org.apache.hive:hive-exec.
What version fixes CVE-2024-29869?
Upgrading to 4.0.1 (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 4.0.1. Upgrade your dependency to 4.0.1 or later.
What is the CVSS score of CVE-2024-29869?
CVE-2024-29869 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-29869?
CVE-2024-29869 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Maven dependencies for CVE-2024-29869?
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-c476-j253-5rgq",
  "modified" : "2025-01-29T19:20:08Z",
  "published" : "2025-01-29T00:31:54Z",
  "aliases" : [ "CVE-2024-29869" ],
  "summary" : "Apache Hive Incorrectly Assigns Permissions for a Critical Resource",
  "details" : "Hive creates a credentials file to a temporary directory in the file system with permissions 644 by default when the file permissions are not set explicitly. Any unauthorized user having access to the directory can read the sensitive information written into this file. Users are recommended to upgrade to version 4.0.1, which fixes this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hive:hive-exec"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29869"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/hive/commit/20106e254527f7d71b2e34455c4322e14950c620"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/hive"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/HIVE-28134"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/h27ohpyrqf9w1m3c0tqr7x8jg59rcrv6"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/01/28/4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-29T19:20:08Z",
    "nvd_published_at" : "2025-01-28T22:15:15Z"
  }
}