Apache Ranger Hive Plugin missing permissions check
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.ranger:ranger-hive-plugin | >= 2.0.0, < 2.4.0 | 2.4.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-40331
- https://github.com/apache/ranger/commit/7dec3015ec82b69ba8f724410f12dfce2480cccd
- https://github.com/apache/ranger/commit/9115a20d524ba9173ce5db3e270c385d58d8aeab
- https://github.com/apache/ranger
- https://issues.apache.org/jira/browse/RANGER-3357
- https://issues.apache.org/jira/browse/RANGER-3474
- https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N- Weakness (CWE)
CWE-732- Platform
- Java / Kotlin (Maven)
- Package
org.apache.ranger:ranger-hive-plugin- Disclosed
- 05.05.2023
- Updated
- 11.10.2026 11:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-vjr2-wpfh-5r9p - CC BY 4.0
Vulnerability history: org.apache.ranger:ranger-hive-plugin
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.