CVE-2021-40331 json
Permissions problem in the Apache Ranger Hive Plugin
published 3y ago modified 4mo ago also GHSA-vjr2-wpfh-5r9p , EUVD-2023-1629
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.ranger:ranger-hive-plugin 2.4.0
Is CVE-2021-40331 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.ranger:ranger-hive-plugin | >=2.0.0, <2.4.0 |
2.4.0 |
Affected products
- Apache Software Foundation Apache Ranger Hive Plugin
- apache ranger
Classification
- Weakness
-
- CWE-732 Incorrect Permission Assignment for Critical Resource
References
-
lists.apache.org
/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn
vendor-advisory, web, issue-tracking, patch
-
github.com
/apache/ranger/commit/7dec3015ec82b69ba8f724410f12dfce2480cccd
web
-
github.com
/apache/ranger/commit/9115a20d524ba9173ce5db3e270c385d58d8aeab
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-40331
advisory
-
github.com
/apache/ranger
package
-
issues.apache.org
/jira/browse/RANGER-3357
web
-
issues.apache.org
/jira/browse/RANGER-3474
web
Sources
- CVE List CVE-2021-40331
- GitHub Advisory GHSA-vjr2-wpfh-5r9p
- NVD CVE-2021-40331
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.