Skip to content

CVE-2023-35701 Apache Hive: Arbitrary command execution via JDBC driver

MediumCVSS 6.6 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
apache hive = 4.0.0-alpha1; = 4.0.0-alpha2; = 4.0.0-beta1; >= 4.0.0-alpha-1, < 4.0.0 4.0.0 Fixed
org.apache.hive/hive-jdbc(Maven) = 4.0.0-alpha-1; = 4.0.0-alpha-2; = 4.0.0-beta-1; >= 4.0.0-alpha-1, < 4.0.0 4.0.0 Fixed

Affected products

ProductAffected versionsFixed in
org.apache.hive/hive-jdbc(Maven) >= 4.0.0-alpha-1, < 4.0.0 4.0.0
org.apache.hive/hive-jdbc(Maven) = 4.0.0-alpha-1 No fix listed
org.apache.hive/hive-jdbc(Maven) = 4.0.0-alpha-2 No fix listed
org.apache.hive/hive-jdbc(Maven) = 4.0.0-beta-1 No fix listed
apache hive >= 4.0.0-alpha-1, < 4.0.0 4.0.0
apache hive = 4.0.0-alpha1 No fix listed
apache hive = 4.0.0-alpha2 No fix listed
apache hive = 4.0.0-beta1 No fix listed

References