{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-40331","id":"CVE-2021-40331","title":"Permissions problem in the Apache Ranger Hive Plugin","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.\n\n\n","descriptionLong":"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.\n\n\n","published":"2023-05-05T07:55:06.554Z","updated":"2026-10-24T10:30:22.836099602Z","reserved":"2021-08-31T09:23:23.832Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["Apache Software Foundation Apache Ranger Hive Plugin"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Ranger Hive Plugin","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"2.3.0","status":"affected","version":"2.0.0","versionType":"semver"}],"platforms":[]}],"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"],"advisory":"GHSA-vjr2-wpfh-5r9p"}],"cwes":["CWE-732"],"aliases":["GHSA-vjr2-wpfh-5r9p"],"references":[{"url":"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","tags":["vendor-advisory","x_transferred","Issue Tracking","Patch","Vendor Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40331","tags":["advisory"]},{"url":"https://github.com/apache/ranger/commit/7dec3015ec82b69ba8f724410f12dfce2480cccd","tags":["web"]},{"url":"https://github.com/apache/ranger/commit/9115a20d524ba9173ce5db3e270c385d58d8aeab","tags":["web"]},{"url":"https://github.com/apache/ranger","tags":["package"]},{"url":"https://issues.apache.org/jira/browse/RANGER-3357","tags":["web"]},{"url":"https://issues.apache.org/jira/browse/RANGER-3474","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00918,"epssPercentile":0.60913,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-40331","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40331","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-40331","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vjr2-wpfh-5r9p","ok":true,"note":"GHSA-vjr2-wpfh-5r9p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-40331","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}