7.5high
Apache Hive Security vulnerability in Hive with UDFs
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.85% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-v3p8-j597-3xg8
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Hive | from Apache Hive before 3.1.3 | CVE List |
| org.apache.hive:hive (Maven) | before 3.1.3 | GitHub Advisory Database |
| apache hive | before 3.1.3 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Las operaciones de función "CREATE" y "DROP" de Apache Hive versiones anteriores a 3.1.3, no comprueban la autorización necesaria de las entidades implicadas en la consulta. Se ha encontrado que un usuario no autorizado puede manipular una UDF existente sin tener los privilegios para hacerlo. Esto permitía a usuarios no autorizados o poco privilegiados soltar y volver a crear UDFs que apuntaban a nuevos tarros que podían ser potencialmente maliciosos
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-34538 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v3p8-j597-3xg8 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-34538 changed 2026-06-17 | Public domain |