{"id":"CVE-2023-35701","published":"2024-05-03T08:11:08Z","modified":"2025-02-13T16:55:52Z","title":"Apache Hive: Arbitrary command execution via JDBC driver","vendor":"Apache","product":"Apache Hive","tier":"tail","description":{"text":"Improper Control of Generation of Code ('Code Injection') vulnerability in Apache Hive.\n\nThe 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. \n\nThe 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.\n\nUsers are recommended to upgrade to version 4.0.0, which fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01103,"percentile":0.66554,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://lists.apache.org/thread/7zcv6l63spl4r66xwz5jv9rtrg2opx81","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/03/3","tags":[]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":13.31},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Hive","versions":[">= 4.0.0-alpha-1, < 4.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-06-17T19:48:50.207497Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.hive:hive-jdbc","vulnerableRanges":[">=4.0.0-alpha-1, <4.0.0"],"patched":["4.0.0"],"from":["GHSA-vpw3-3prf-3974"],"provenance":"source"}],"summary":{"text":"The flaw is an improper control of code generation (code injection) in the JDBC driver component of Apache Hive, which can lead to arbitrary code execution on the machine running the Hive JDBC client. An attacker who can set up a malicious HTTP server and get a victim's JDBC client to connect to a crafted JDBC URL can trigger command execution, but this requires the attacker to have sufficient permissions to specify or edit JDBC URLs on an endpoint using the driver, and the client process must run as a privileged user for full exploitation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:21Z"},"euvd":{"id":"EUVD-2024-1812","exploited":false,"provenance":"source"}}