{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.hive:hive-jdbc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-35701 in the wild and no public exploit code.","fix":"Upgrade org.apache.hive:hive-jdbc to 4.0.0 or later.","what":"CVE-2023-35701 is a medium-severity code injection vulnerability in Apache Hive, published on 3 May 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-35701 and fix it if it is affected.\n\nWhat it is: CVE-2023-35701 is a medium-severity code injection vulnerability in Apache Hive, published on 3 May 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-35701 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.hive:hive-jdbc (Maven): affected from 4.0.0-alpha-1; fixed in 4.0.0\n- org.apache.hive:hive-jdbc (Maven): affected from 4.0.0-alpha-1; fixed in 4.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-35701/ (Markdown: https://insights.sbomify.com/CVE-2023-35701/index.md)","id":"CVE-2023-35701","markdown":"https://insights.sbomify.com/CVE-2023-35701/index.md","name":"CVE-2023-35701","record":{"aliases":["GHSA-vpw3-3prf-3974"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Hive JDBC driver","requires_auth":"high_privilege","summary":"Attacker with JDBC URL edit permissions can execute arbitrary code on the client machine via a malicious HTTP server response.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"hive","vendor":"apache"}],"cvss":{"score":6.6,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Hive: Arbitrary command execution via JDBC driver","id":"CVE-2023-35701","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"Memory corruption in GTKWave","id":"CVE-2023-35702"},"packages":[{"ecosystem":"Maven","fixed":["4.0.0"],"introduced":["4.0.0-alpha-1"],"last_affected":[],"package":"org.apache.hive:hive-jdbc","purl":null,"source":"GHSA-vpw3-3prf-3974"},{"ecosystem":"Maven","fixed":["4.0.0"],"introduced":["4.0.0-alpha-1"],"last_affected":[],"package":"org.apache.hive:hive-jdbc","purl":"pkg:maven/org.apache.hive/hive-jdbc","source":"GHSA-vpw3-3prf-3974"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2023-35700"},"products":["Apache Hive"],"published":"2024-05-03","related":[{"cvss_score":9.8,"headline":"Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths","id":"CVE-2026-49845","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Jodd","id":"CVE-2018-21234","kev_date_added":null,"published":"2020-05-21"},{"cvss_score":9.1,"headline":"Apache Hive: SSRF vulnerability in Hive Avro Serde due to Insufficient input validation on avro.schema.url","id":"CVE-2026-55976","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":9.1,"headline":"SQL Injection in hive-jdbc","id":"CVE-2018-1282","kev_date_added":null,"published":"2018-04-05"},{"cvss_score":8.3,"headline":"Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore","id":"CVE-2022-41137","kev_date_added":null,"published":"2024-12-05"},{"cvss_score":8.3,"headline":"High severity vulnerability that affects org.apache.hive:hive, org.apache.hive:hive-exec, and org.apache.hive:hive-service","id":"CVE-2015-7521","kev_date_added":null,"published":"2016-01-29"},{"cvss_score":8.1,"headline":"Improper Authentication in hive:hive-exec","id":"CVE-2018-11777","kev_date_added":null,"published":"2018-11-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Attacker with JDBC URL edit permissions can execute arbitrary code on the client machine via a malicious HTTP server response.","url":"https://insights.sbomify.com/CVE-2023-35701/"}