Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.ranger/ranger-hive-plugin
  4. ›
  5. CVE-2021-40331

CVE-2021-40331: Incorrect Permission Assignment for Critical Resource

May 5, 2023

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.

References

  • github.com/advisories/GHSA-vjr2-wpfh-5r9p
  • github.com/apache/ranger/commit/7dec3015ec82b69ba8f724410f12dfce2480cccd
  • github.com/apache/ranger/commit/9115a20d524ba9173ce5db3e270c385d58d8aeab
  • issues.apache.org/jira/browse/RANGER-3357
  • issues.apache.org/jira/browse/RANGER-3474
  • lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn
  • nvd.nist.gov/vuln/detail/CVE-2021-40331

Code Behaviors & Features

Detect and mitigate CVE-2021-40331 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.4.0

Fixed versions

  • 2.4.0

Solution

Upgrade to version 2.4.0 or above.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

maven/org.apache.ranger/ranger-hive-plugin/CVE-2021-40331.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.