LiveActive security incident?Get immediate response
CVE Record

CVE-2021-40331: Permissions problem in the Apache Ranger Hive Plugin

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.

HighCVSS 8.1Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Apache Ranger Hive Plugin could let a user with ordinary SELECT access take ownership of Hive tables. That can undermine data governance because ownership often controls who can change permissions or manage sensitive data. The vendor-recommended fix is upgrading to Apache Ranger Hive Plugin 2.4.0 or later.

Executive priority

Treat this as a high-priority data governance risk if Apache Ranger protects Hive. It can let low-privileged users gain control over table ownership, affecting confidentiality and integrity. Prioritize upgrade planning for affected clusters, especially those hosting sensitive datasets.

Technical view

CVE-2021-40331 is an incorrect permission assignment issue in Apache Ranger Hive Plugin 2.0.0 through 2.3.0. When enabled, a user with SELECT privilege on a database can alter Hive table ownership. CVSS 3.1 is 8.1, network-accessible, low complexity, low privilege, no user interaction, with high confidentiality and integrity impact.

Likely exposure

Exposure is limited to environments using Apache Ranger Hive Plugin versions 2.0.0 through 2.3.0 with Hive. Risk is higher where many users or service accounts have SELECT privileges on databases containing sensitive or regulated data.

Exploitation context

The source bundle does not cite active exploitation, and this CVE is not marked as KEV. The issue requires an authenticated user with SELECT privilege. The available evidence supports privilege abuse and governance bypass risk, not unauthenticated compromise.

Researcher notes

Evidence is concise but clear: affected component, affected versions, required privilege, impact class, and recommended upgrade are named. The bundle does not include proof-of-concept details, exploit observations, or alternate mitigations beyond upgrading and reviewing vendor guidance.

Mitigation direction

  • Upgrade Apache Ranger Hive Plugin to version 2.4.0 or later.
  • Inventory Hive environments using Ranger Hive Plugin 2.0.0 through 2.3.0.
  • Review Apache vendor guidance before deploying the upgrade.
  • Reduce unnecessary SELECT privileges on Hive databases until upgraded.
  • Audit recent Hive table ownership changes for unexpected activity.

Validation and detection

  • Confirm the installed Apache Ranger Hive Plugin version in each Hive environment.
  • Check whether Ranger Hive Plugin is enabled for Hive authorization.
  • Identify users and service accounts with database-level SELECT privileges.
  • Review audit logs for table ownership changes by low-privileged accounts.
  • Verify the upgrade reaches Apache Ranger Hive Plugin 2.4.0 or later.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-732: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Database behavior lookup

The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-40331 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.1CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N2.85.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.1High
CVSS 3.1 vector shape for CVE-2021-40331Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Apache Software FoundationApache Ranger Hive Plugin2.0.0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.