Skip to content

Apache Hive Code Injection vulnerability

Moderate severity GitHub Reviewed Published May 3, 2024 to the GitHub Advisory Database • Updated May 8, 2024

Package

maven org.apache.hive:hive-jdbc (Maven)

Affected versions

>= 4.0.0-alpha-1, < 4.0.0

Patched versions

4.0.0

Description

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.

References

Published by the National Vulnerability Database May 3, 2024
Published to the GitHub Advisory Database May 3, 2024
Reviewed May 3, 2024
Last updated May 8, 2024

Severity

Moderate

Weaknesses

CVE ID

CVE-2023-35701

GHSA ID

GHSA-vpw3-3prf-3974

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.