{"api_version":"1","generated_at":"2026-07-23T19:18:10+00:00","cve":"CVE-2021-40331","urls":{"html":"https://cve.report/CVE-2021-40331","api":"https://cve.report/api/cve/CVE-2021-40331.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40331","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40331"},"summary":{"title":"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.","state":"PUBLIC","assigner":"security@apache.org","published_at":"2023-05-05 08:15:00","updated_at":"2023-05-11 14:14:00"},"problem_types":["CWE-732"],"metrics":[],"references":[{"url":"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","name":"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","refsource":"MISC","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40331","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40331","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"40331","vulnerable":"1","versionEndIncluding":"2.3.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"apache","cpe5":"ranger","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"hive","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2021-40331","ASSIGNER":"security@apache.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-732 Incorrect Permission Assignment for Critical Resource","cweId":"CWE-732"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Apache Software Foundation","product":{"product_data":[{"product_name":"Apache Ranger Hive Plugin","version":{"version_data":[{"version_affected":"<=","version_name":"2.0.0","version_value":"2.3.0"}]}}]}}]}},"references":{"reference_data":[{"url":"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn","refsource":"MISC","name":"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn"}]},"generator":{"engine":"Vulnogram 0.1.0-dev"},"source":{"defect":["RANGER-3474","RANGER-3357"],"discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2023-05-05 08:15:00","lastModifiedDate":"2023-05-11 14:14:00","problem_types":["CWE-732"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.2}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:apache:ranger:*:*:*:*:*:hive:*:*","versionStartIncluding":"2.0.0","versionEndIncluding":"2.3.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"40331","Ordinal":"216055","Title":"CVE-2021-40331","CVE":"CVE-2021-40331","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"40331","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}