CVE-2024-29869
Medium · 5.5Apache Hive Incorrectly Assigns Permissions for a Critical Resource
CVSS
5.5
EPSS
0.3%
Published
Jan 29, 2025
CISA due date
—
Cloudanix analysis
The software was saving secret login details in a file that other users on the same computer could read, creating a risk of unauthorized access to systems and data.
- Exploitation
- Other
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Credential Exposure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Creates a credentials file in a temporary directory with default 644 permissions when not explicitly set, exposing sensitive credential contents to any local user with directory access.
Why it matters to the business
Exposure of credentials in multi-user or shared environments can lead to unauthorized access to databases or services, increasing breach risk and compliance issues; the issue affects widely used Hive deployments across many organizations.
How an attack unfolds
An attacker with local access to the temporary directory used by Hive locates the newly created credentials file and reads its contents to obtain sensitive authentication material for further attacks.
How to fix it
Upgrade apache/hive to the fixed versions 20106e254527f7d71b2e34455c4322e14950c620 or 3af4517eb8cfd9407ad34ed78a0b48b57dfaa264 (equivalent to 4.0.1); update affected Red Hat Thunderbird packages to 0:91.3.0-2.el7_9 or later; set explicit restrictive permissions on any credentials files.
How to confirm the fix worked
Confirm installed package versions match the listed fixed releases, inspect newly created credentials files for permissions stricter than 644, and test credential file creation under explicit permission settings.
Typical attack path
- Obtain local filesystem access to the temporary directory used by the application
- Identify the credentials file created with 644 permissions
- Read the file to extract embedded credentials
- Use harvested credentials for lateral movement or data access
How to detect it
Examine temporary directories for files matching credentials patterns created with 644 permissions, review local file access logs for unexpected reads of those files, and correlate with Hive process activity.
- credentials file mode 644
- /tmp/.*credentials
- hive credentials exposure in temp dir
What your security team should do
- Apply the listed fixed versions immediately due to credential exposure risk
- Enforce explicit file permission settings in Hive configuration
- Audit temporary directories for world-readable credential artifacts
- Review local access controls on systems running affected Hive versions
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.apache.hive:hive-exec | 0 | 4.0.1 |
| Chainguard | spark-3.5 | 0 | 3.5.7-r2 |
| Chainguard | spark-3.5-scala-2.12-compat | 0 | 3.5.7-r2 |
| Chainguard | spark-3.5-scala-2.12-iamguarded-compat | 0 | 3.5.7-r2 |
| Chainguard | spark-3.5-scala-2.13-compat | 0 | 3.5.7-r2 |
| Chainguard | spark-4.0 | 0 | 4.0.1-r1 |
| Chainguard | spark-4.0-scala-2.13-compat | 0 | 4.0.1-r1 |
| Chainguard | spark-4.1 | 0 | 4.1.0-r1 |
| Chainguard | spark-4.1-scala-2.13-compat | 0 | 4.1.0-r1 |
| Chainguard | spark-fips-3.5 | 0 | 3.5.4-r17 |
| Chainguard | spark-fips-3.5-scala-2.12-compat | 0 | 3.5.4-r17 |
| Chainguard | spark-fips-3.5-scala-2.13-compat | 0 | 3.5.4-r17 |
| Wolfi | spark-3.5 | 0 | 3.5.7-r2 |
| Wolfi | spark-3.5-scala-2.12-compat | 0 | 3.5.7-r2 |
| Wolfi | spark-3.5-scala-2.12-iamguarded-compat | 0 | 3.5.7-r2 |
| Wolfi | spark-3.5-scala-2.13-compat | 0 | 3.5.7-r2 |
| Wolfi | spark-4.0 | 0 | 4.0.1-r1 |
| Wolfi | spark-4.0-scala-2.13-compat | 0 | 4.0.1-r1 |
| Wolfi | spark-4.1 | 0 | 4.1.0-r1 |
| Wolfi | spark-4.1-scala-2.13-compat | 0 | 4.1.0-r1 |
Related vulnerabilities
- CVE-2025-12383 Eclipse Jersey has a Race Condition Also affects spark-3.5
- CVE-2025-55163 Netty affected by MadeYouReset HTTP/2 DDoS vulnerability Also affects spark-3.5
- CVE-2025-53864 Connect2id Nimbus JOSE + JWT 10.0.x before 10.0.2 and 9.37.x before 9.37.4 allows a… Also affects spark-3.5
- CVE-2025-52999 jackson-core contains core low-level incremental ("streaming") parser and generator… Also affects spark-3.5
- CVE-2025-49128 Jackson-core contains core low-level incremental ("streaming") parser and generator… Also affects spark-3.5
- CVE-2024-23953 Apache Hive vulnerable to Observable Timing Discrepancy and Authentication Bypass by… Also affects spark-3.5
- CVE-2024-12801 Server-Side Request Forgery (SSRF) in SaxEventRecorder by QOS.CH logback version 0.1 to… Also affects spark-3.5
- CVE-2024-12798 ACE vulnerability in JaninoEventEvaluator by QOS.CH logback-core upto including version… Also affects spark-3.5