{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-40331","published":"2023-05-05T08:15:08.683000Z","last_modified":"2026-06-17T04:06:44.387000Z","status":"Modified","cvss":{"version":"3.1","score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-732"],"cpes":[{"criteria":"cpe:2.3:a:apache:ranger:*:*:*:*:*:hive:*:*","part":"a","vendor":"apache","product":"ranger","version_start_including":"2.0.0","version_end_including":"2.3.0"}],"cpes_truncated":false,"vendors":["apache"],"products":["apache/ranger"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.00918,"percentile":0.58479,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-vjr2-wpfh-5r9p","ecosystem":"Maven","name":"org.apache.ranger:ranger-hive-plugin","purl":"pkg:maven/org.apache.ranger/ranger-hive-plugin","ranges":[{"introduced":"2.0.0","fixed":"2.4.0"}],"versions":["2.0.0","2.1.0","2.2.0","2.3.0"],"versions_truncated":false}],"severity":"high","priority_score":49,"links":{"html_es":"/es/cve/CVE-2021-40331/","html_en":"/en/cve/CVE-2021-40331/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40331","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40331"},"untrusted":{"vendor_name":"Apache","product_name":"Ranger","desc_en":"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.","affected":[{"untrusted_vendor":"Apache Software Foundation","untrusted_product":"Apache Ranger Hive Plugin","versions":[]},{"untrusted_vendor":"apache","untrusted_product":"ranger","versions":[]}],"references":[{"url":"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","tags":["Issue Tracking","Patch","Vendor Advisory"]}]}}