{"id":"CVE-2021-40331","aliases":["EUVD-2023-1629","GHSA-vjr2-wpfh-5r9p"],"status":"published","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.","severity":{"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","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00918,"percentile":0.60469,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-732"],"published":"2023-05-05T07:55:06Z","modified":"2026-10-24T10:30:22Z","fixes":[{"ecosystem":"Maven","package":"org.apache.ranger:ranger-hive-plugin","fixed_in":["2.4.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.apache.ranger:ranger-hive-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.0"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.apache.ranger:ranger-hive-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.0"}]}],"versions":["2.0.0","2.1.0","2.2.0","2.3.0"]}],"products":[{"vendor":"apache","product":"ranger"},{"vendor":"apache software foundation","product":"apache ranger hive plugin"}],"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://issues.apache.org/jira/browse/RANGER-3357","tags":["web"]},{"url":"https://issues.apache.org/jira/browse/RANGER-3474","tags":["web"]},{"url":"https://github.com/advisories/GHSA-vjr2-wpfh-5r9p"},{"url":"https://github.com/apache/ranger","tags":["package"]}],"sources":{"cve":[{"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","status":"published","published":"2023-05-05T07:55:06.554Z","modified":"2024-10-11T17:07:19.817Z","cvss":[{"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","level":"high","assessor":"adp"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T14:33:01.495293Z"}],"euvd":[{"id":"EUVD-2023-1629","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","status":"published","published":"2023-05-05T07:55:06Z","modified":"2024-10-11T17:07:19Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-03T00:27:39.149807Z"}],"ghsa":[{"id":"GHSA-vjr2-wpfh-5r9p","title":"Apache Ranger Hive Plugin missing permissions check","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","status":"published","published":"2023-05-05T09:30:15Z","modified":"2023-11-10T05:00:34Z","cvss":[{"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","level":"high"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T14:37:18.40412Z"}],"nvd":[{"id":"CVE-2021-40331","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","status":"published","published":"2023-05-05T08:15:08.683Z","modified":"2026-06-17T04:06:44.387Z","cvss":[{"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","level":"high","assessor":"primary"},{"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","level":"high","assessor":"secondary"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T14:07:07.764332Z"}],"osv":[{"id":"CVE-2021-40331","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","status":"published","published":"2023-05-05T08:15:08.683Z","modified":"2026-10-24T10:30:22.836099602Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"GHSA-vjr2-wpfh-5r9p","title":"Apache Ranger Hive Plugin missing permissions check","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","status":"published","published":"2023-05-05T09:30:15Z","modified":"2024-02-16T08:23:49.077373Z","cvss":[{"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","level":"high"}],"cwes":["CWE-732"],"updated_at":"2026-11-02T15:46:57.348035Z"}]}}
