CVE-2021-40331: Apache Ranger Hive Plugin - Privilege Escalation
- Cve: CVE-2021-40331
- Name: Apache Ranger Hive Plugin - Privilege Escalation
- Description: An Incorrect Permission Assignment for Critical Resource vulnerability was found in the Apache Ranger Hive Plugin. Any user with SELECT privilege on a database can alter the ownership of the table in Hive when Apache Ranger Hive Plugin is enabled This issue affects Apache Ranger Hive Plugin: from 2.0.0 through 2.3.0. Users are recommended to upgrade to version 2.4.0 or later.
- Impact: Users with SELECT privilege can escalate privileges by altering table ownership, potentially leading to unauthorized control over database resources.
- Remediation: Upgrade to version 2.4.0 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs to have SELECT privilege on the database
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00918
- Epss percentile: 0.61129
- Assignee: [email protected]
- Published at: 2023-05-05T08:15:08Z
- Age in days: 1299
- Modified at: 2026-06-17T04:06:44Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-40331
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-732 | Incorrect Permission Assignment for Critical Resource |
References
| Url | Source | Tags |
|---|---|---|
| https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn | nvd | Issue Tracking, Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apache:ranger | >= 2.0.0, <= 2.3.0 | no | nvd | /v1/products/apache/ranger |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| apache/ranger | commit, package | yes | /v1/repositories/apache/ranger |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 60
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports