patchminder
No public exploit found CVE-2021-40331

Vulnerabilityin Apache Ranger.

Published 5 May 2023 · Updated 11 Oct 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.9% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.4.0 or later
In plain words

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.

What to do now
  • Upgrade org.apache.ranger:ranger-hive-plugin (Maven) to 2.4.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache Ranger Hive Plugin
2.0.0 to 2.3.0
Not confirmed
CVE record
org.apache.ranger:ranger-hive-plugin (Maven)
2.0.0 to before 2.4.0
2.4.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 31 Aug 2021
    CVE ID reserved by apache.
  2. 5 May 2023
    Published in the CVE List.
  3. 11 Oct 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Ranger vulnerabilities

Same weakness: Incorrect permission assignment

All CWE-732 vulnerabilities

References
Cite this page

Patchminder. CVE-2021-40331: Vulnerability in Apache Ranger. https://patchminder.com/cve/cve-2021-40331/ (accessed 5 December 2026).