CVE-2023-35701: Apache Hive - Code Injection
- Cve: CVE-2023-35701
- Name: Apache Hive - Code Injection
- 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.
- Impact: Attackers can execute arbitrary code on the JDBC client machine, potentially leading to full system compromise.
- Remediation: Upgrade to version 4.0.0 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs sufficient permissions to specify/edit JDBC URL(s)
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.6
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01103
- Epss percentile: 0.66592
- Assignee: [email protected]
- Published at: 2024-05-03T09:15:07Z
- Age in days: 935
- Modified at: 2026-06-17T06:05:02Z
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-35701
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://lists.apache.org/thread/7zcv6l63spl4r66xwz5jv9rtrg2opx81 | nvd | Mailing List, Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2024/05/03/3 | nvd | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apache:hive | = 4.0.0 alpha1, = 4.0.0 alpha2, = 4.0.0 beta1 | no | nvd | /v1/products/apache/hive |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| apache/hive | commit, package | yes | /v1/repositories/apache/hive |
Index
- Repositories: 20
- Repositories high signal: 16
- Checked, none or zero: packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 27
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports