Apache Hive Security vulnerability in Hive with UDFs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-306.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Hive | Apache Hive to before 3.1.3 | 3.1.3 | Patch available | CNA |
| — | org.apache.hive:hive (Maven) | before 3.1.3 | 3.1.3 | Patch available | GHSA-v3p8-j597-3xg8 |
- Apache Hive VendorApache Affected Apache Hive to before 3.1.3 Fixed in 3.1.3 Patch available CNA
- org.apache.hive:hive (Maven) Vendor— Affected before 3.1.3 Fixed in 3.1.3 Patch available GHSA-v3p8-j597-3xg8
Remediation
- Fix · CNA Apache Hive (Apache Software Foundation) Fixed in 3.1.3
- Fix · GHSA-v3p8-j597-3xg8 org.apache.hive:hive (Maven) Fixed in 3.1.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-34538
- 2026-10-03 Alias added: GHSA-v3p8-j597-3xg8
References
More Apache Hive vulnerabilities
- TI-2018-15196 Jodd before 5.0.4 performs Deserialization of Untrusted JSON Data when setClassMetadataName is set. CVSS 3.1CRITICAL 9.8
- TI-2026-40376 Apache Hive: SSRF vulnerability in Hive Avro Serde due to Insufficient input validation on avro.schema.url CVSS 3.1CRITICAL 9.1
- TI-2018-01187 SQL injection in Apache Hive CVSS 3.0CRITICAL 9.1
- TI-2026-36749 Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths CVSS 3.1CRITICAL 9.8
- TI-2015-06259 The authorization framework in Apache Hive 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0 and 1.2.1… CVSS 3.0HIGH 8.3
- TI-2020-10925 Uncontrolled resource consumption in Apache Thrift CVSS 3.1HIGH 7.5
Sources
- CVE-2021-34538 · CVE Program
- CVE-2021-34538 · NVD
- FIRST EPSS
- GHSA-v3p8-j597-3xg8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences