# CVE-2021-34538: Apache Hive Security vulnerability in Hive with UDFs

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Published: 2022-07-16T07:10:09.000Z
- Modified: 2026-09-10T03:49:44.901Z
- Also known as: GHSA-v3p8-j597-3xg8
- Weaknesses: CWE-306
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Hive: from Apache Hive before 3.1.3
- org.apache.hive:hive (Maven): before 3.1.3
- apache hive: before 3.1.3

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://lists.apache.org/thread/oqqgnhz4c6nxsfd0xstosnk0g15f7354> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-34538> (advisory)
- <https://github.com/apache/hive> (package)

## Sources

- CVE List: [CVE-2021-34538](https://www.cve.org/CVERecord?id=CVE-2021-34538), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-v3p8-j597-3xg8](https://github.com/advisories/GHSA-v3p8-j597-3xg8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-34538](https://nvd.nist.gov/vuln/detail/CVE-2021-34538), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-34538 · Whole record: https://cve.day/CVE-2021-34538.json · Rebuilt by cve.day 2026-11-25T22:58:07.714Z
