GHSA-vpw3-3prf-3974

Suggest an improvement
Source
https://github.com/advisories/GHSA-vpw3-3prf-3974
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-vpw3-3prf-3974/GHSA-vpw3-3prf-3974.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vpw3-3prf-3974
Aliases
  • CVE-2023-35701
Published
2024-05-03T09:30:52Z
Modified
2025-02-13T19:11:02.177742Z
Severity
  • 6.6 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Apache Hive Code Injection vulnerability
Details

Improper Control of Generation of Code ('Code Injection') vulnerability in Apache Hive.

The vulnerability affects the Hive JDBC driver component and it can potentially lead to arbitrary code execution on the machine/endpoint that the JDBC driver (client) is running. The malicious user must have sufficient permissions to specify/edit JDBC URL(s) in an endpoint relying on the Hive JDBC driver and the JDBC client process must run under a privileged user to fully exploit the vulnerability. 

The attacker can setup a malicious HTTP server and specify a JDBC URL pointing towards this server. When a JDBC connection is attempted, the malicious HTTP server can provide a special response with customized payload that can trigger the execution of certain commands in the JDBC client.This issue affects Apache Hive: from 4.0.0-alpha-1 before 4.0.0.

Users are recommended to upgrade to version 4.0.0, which fixes the issue.

Database specific
{
    "nvd_published_at": "2024-05-03T09:15:07Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-05-03T20:27:25Z"
}
References

Affected packages

Maven / org.apache.hive:hive-jdbc

Package

Name
org.apache.hive:hive-jdbc
View open source insights on deps.dev
Purl
pkg:maven/org.apache.hive/hive-jdbc

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0-alpha-1
Fixed
4.0.0

Affected versions

4.*

4.0.0-alpha-1
4.0.0-alpha-2
4.0.0-beta-1