{"cve":"CVE-2021-40331","nvd":{"published":"2023-05-05T08:15:08.683","modified":"2026-06-17T04:06:44.387","status":"Modified","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\nThis 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1},"cwes":["CWE-732"],"references":["https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn"],"products":["apache:ranger"],"source":"nvd","synced_at":"2026-10-19T21:38:18.424950729+00:00"},"epss":{"cve":"CVE-2021-40331","score":0.00918,"percentile":0.60235,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vjr2-wpfh-5r9p","url":"https://osv.dev/vulnerability/GHSA-vjr2-wpfh-5r9p","summary":"Apache Ranger Hive Plugin missing permissions check","modified":"2024-02-16T08:23:49.077373Z","packages":[{"ecosystem":"Maven","name":"org.apache.ranger:ranger-hive-plugin","purl":"pkg:maven/org.apache.ranger/ranger-hive-plugin","ranges":[">=2.0.0 <2.4.0"],"fixed":["2.4.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}