CVE-2021-34538
HIGH 7.5CVSS 3.1Apache Hive before 3.1.3 `CREATE` and `DROP` function operations do not check for necessary authorization.
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.
- Published
- 16 Jul 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-306
- Also known as
- GHSA-v3p8-j597-3xg8
- Sources
- NVDJSONOSV GHSA-v3p8-j597-3xg8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | hivecpe:2.3:a:apache:hive:*:*:*:*:*:*:*:* |
< 3.1.3 | 3.1.3 |
| OSV | Maven | org.apache.hive:hive | < 3.1.3 | 3.1.3 |
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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 16 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 Jul 2022)