{"schemaVersion":3,"id":"CVE-2021-40331","aliases":["GHSA-vjr2-wpfh-5r9p"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-05-05T07:55:06.554Z","modified":"2024-10-11T17:07:19.817Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","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","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00918,"percentile":0.59574,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00918},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00918,"percentile":0.59574}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00918,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00918,"percentile":0.59574}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource","description":"The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/732.html"}],"affected":[{"vendor":"apache software foundation","product":"apache ranger hive plugin","name":"Apache Ranger Hive Plugin","label":"apache ranger hive plugin","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, ≤ 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, ≤ 2.3.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_ranger_hive_plugin"},{"vendor":"apache","product":"ranger","name":"ranger","label":"ranger","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, ≤ 2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, ≤ 2.3.0","eol":null,"hubHref":"/vendor/apache/ranger"},{"vendor":"org.apache.ranger","product":"ranger-hive-plugin","name":"org.apache.ranger:ranger-hive-plugin","label":"ranger-hive-plugin","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.ranger/ranger-hive-plugin","purlType":"maven","versions":[{"text":"≥ 2.0.0, < 2.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.4.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","label":"lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","hostname":"lists.apache.org","tags":["Vendor Advisory","WEB","Issue Tracking","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40331","label":"nvd.nist.gov/vuln/detail/CVE-2021-40331","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/ranger/commit/7dec3015ec82b69ba8f724410f12dfce2480cccd","label":"github.com/apache/ranger/commit/7dec3015ec82b69ba8f724410f12dfce2480cccd","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/ranger/commit/9115a20d524ba9173ce5db3e270c385d58d8aeab","label":"github.com/apache/ranger/commit/9115a20d524ba9173ce5db3e270c385d58d8aeab","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/ranger","label":"github.com/apache/ranger","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://issues.apache.org/jira/browse/RANGER-3357","label":"issues.apache.org/jira/browse/RANGER-3357","hostname":"issues.apache.org","tags":["WEB"]},{"url":"https://issues.apache.org/jira/browse/RANGER-3474","label":"issues.apache.org/jira/browse/RANGER-3474","hostname":"issues.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-05-05T07:55:06.554Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-11T17:07:19.817Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T09:10:51.947Z","stale":false,"partial":false}}