WaratekVRT Sign in

CVE-2021-40331 Apache Ranger

Affected softwareApache Ranger
Severity8.1 High CVSS 3.1 2 scores
Fixed in2.4.0
WeaknessIncorrect permission assignment (CWE-732)
Published5 May 2023
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 3 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.92% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: apache/ranger 7dec301.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.

CVSS

8.1 HIGH v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 8.1 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N NVD Primary published
CVSS 3.1 8.1 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CISA-ADP Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.ranger:ranger-hive-plugin 2.0.0 2.4.0 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache ranger generic ≥ 2.0.0 and ≤ 2.3.0
osv org.apache.ranger ranger-hive-plugin generic ≥ 2.0.0 and < 2.4.0

References

URLTags
https://github.com/apache/ranger/commit/7dec3015ec82b69ba8f724410f12dfce2480cccd WEB
https://github.com/apache/ranger/commit/9115a20d524ba9173ce5db3e270c385d58d8aeab WEB
https://github.com/apache/ranger PACKAGE
https://issues.apache.org/jira/browse/RANGER-3357 WEB
https://issues.apache.org/jira/browse/RANGER-3474 WEB
https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn WEB

Timeline

Published2023-05-05By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.