CVE-2021-40331: Permissions problem in the Apache Ranger Hive Plugin
Vulnerability summary
CVE-2021-40331 is a high (CVSS 8.1) vulnerability in apache software foundation apache ranger hive plugin. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 61.4% of scored vulnerabilities.
Not severe (CVSS 8.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 05-05-2023PublishedVulnerability first disclosed.
- 11-10-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.92%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.92% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Apache1 product
- ranger≥ 2.0.0, ≤ 2.3.0
Apache software foundation1 product
- apache ranger hive plugin≥ 2.0.0, ≤ 2.3.0
Org.apache.ranger1 product
- ranger-hive-plugin≥ 2.0.0, < 2.4.0
3 vendors · 3 products
References
7 links- github.com/apache/rangerPACKAGE