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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-03 · Modified: 2025-02-13
- Aliases: GHSA-vpw3-3prf-3974
- Record: https://cvemate.com/vulnerability/CVE-2023-35701 · JSON: https://cvemate.com/vulnerability/CVE-2023-35701/json

## Description

```text
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.
```

## Signals

- CVSS: 6.6 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.103%, percentile 66.844%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache hive: ≥ 4.0.0-alpha-1, \< 4.0.0
- apache hive: 4.0.0:alpha1 \| 4.0.0:alpha2 \| 4.0.0:beta1
- org.apache.hive hive-jdbc (Maven): ≥ 4.0.0-alpha-1, \< 4.0.0

## References

- <https://lists.apache.org/thread/7zcv6l63spl4r66xwz5jv9rtrg2opx81>
- <http://www.openwall.com/lists/oss-security/2024/05/03/3>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-35701>
- <https://github.com/apache/hive/commit/7abeb1df463cc389f668172e7cf3bb772799858a>
- <https://github.com/apache/hive>
- <https://issues.apache.org/jira/browse/HIVE-27554>

---

Data as of 2026-12-05T04:11:22.329Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
