{"id":"CVE-2021-34538","aliases":["CLSA-2025-1751328156","EUVD-2022-6416","GHSA-v3p8-j597-3xg8"],"status":"published","title":"Apache Hive Security vulnerability in Hive with UDFs","description":"Apache Hive before 3.1.3 \"CREATE\" and \"DROP\" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01859,"percentile":0.795,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-306"],"published":"2022-07-16T07:10:09Z","modified":"2026-10-30T19:45:06Z","fixes":[{"ecosystem":"Maven","package":"org.apache.hive:hive","fixed_in":["3.1.3"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:Maven","package":"org.apache.hive:hive","fixed_in":["2.3.9.tuxcare.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.apache.hive:hive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}]},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.apache.hive:hive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3.9"},{"fixed":"2.3.9.tuxcare.1"}]}],"versions":["2.3.9"]},{"source":"osv","ecosystem":"Maven","package":"org.apache.hive:hive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.3"}]}],"versions":["0.13.0","0.13.1","0.14.0","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.2.1","1.2.2","2.0.0","2.0.1","2.1.0","2.1.1","2.2.0","2.3.0","2.3.1","2.3.10","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.9","3.0.0","3.1.0","3.1.1","3.1.2"]}],"products":[{"vendor":"apache","product":"hive"},{"vendor":"apache software foundation","product":"apache hive"}],"references":[{"url":"https://lists.apache.org/thread/oqqgnhz4c6nxsfd0xstosnk0g15f7354","tags":["x_refsource_MISC","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-34538","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-v3p8-j597-3xg8"},{"url":"https://github.com/apache/hive","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-34538","title":"Apache Hive Security vulnerability in Hive with UDFs","description":"Apache Hive before 3.1.3 \"CREATE\" and \"DROP\" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.","status":"published","published":"2022-07-16T07:10:09Z","modified":"2024-08-04T00:12:50.447Z","cwes":["CWE-306"],"updated_at":"2026-11-02T14:33:11.244759Z"}],"euvd":[{"id":"EUVD-2022-6416","description":"Apache Hive before 3.1.3 \"CREATE\" and \"DROP\" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.","status":"published","published":"2022-07-16T07:10:09Z","modified":"2024-08-04T00:12:50Z","updated_at":"2026-11-03T03:24:32.445199Z"}],"ghsa":[{"id":"GHSA-v3p8-j597-3xg8","title":"Apache Hive before 3.1.3 `CREATE` and `DROP` function operations do not check for necessary authorization.","description":"Apache Hive before 3.1.3 `CREATE` and `DROP` function operations do not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.","status":"published","published":"2022-07-17T00:00:45Z","modified":"2023-01-27T05:06:06Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-306"],"updated_at":"2026-11-02T14:36:21.8171Z"}],"nvd":[{"id":"CVE-2021-34538","description":"Apache Hive before 3.1.3 \"CREATE\" and \"DROP\" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.","status":"published","published":"2022-07-16T07:15:08.53Z","modified":"2026-06-17T03:56:05.427Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-306"],"updated_at":"2026-11-02T14:07:06.501652Z"}],"osv":[{"id":"CVE-2021-34538","description":"Apache Hive before 3.1.3 \"CREATE\" and \"DROP\" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.","status":"published","published":"2022-07-16T07:15:08.53Z","modified":"2026-10-24T10:30:44.517701425Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"GHSA-v3p8-j597-3xg8","title":"Apache Hive before 3.1.3 `CREATE` and `DROP` function operations do not check for necessary authorization.","description":"Apache Hive before 3.1.3 `CREATE` and `DROP` function operations do not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.","status":"published","published":"2022-07-17T00:00:45Z","modified":"2026-09-10T03:49:44.901034741Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-306"],"updated_at":"2026-11-02T15:46:56.639206Z"},{"id":"CLSA-2025-1751328156","title":"TuxCare security update for org.apache.hive:hive (1 CVE)","description":"TuxCare rebuilt org.apache.hive:hive to address 1 CVE. Fixed in 2.3.9.tuxcare.1.","status":"published","published":"2026-08-04T14:52:04Z","modified":"2026-10-30T19:45:06.767295012Z","updated_at":"2026-11-02T15:43:41.66212Z"}]}}
