Security advisory
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 This 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-40331
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 04:52 UTC · Revision 1
Source evidence
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 This 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.
osv:CVE-2021-40331
Complete source record
{
"id": "efee5f9f642a294255268790ac1c92dc60f9d632b753f911c6faa810ef6a7a1a",
"url": "https://osv.dev/vulnerability/CVE-2021-40331",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-40331",
"summary": "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 This 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.",
"evidence": "osv:CVE-2021-40331",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-40331",
"aliases": [
"CVE-2021-40331",
"GHSA-vjr2-wpfh-5r9p"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/apache/ranger",
"type": "GIT",
"events": [
{
"introduced": "2a97668824d6a05f97193f3bf21d1bbe50a48330"
},
{
"last_affected": "ce3339c8ab653d99382caba9b2e5f306a7118561"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:ranger:*:*:*:*:*:hive:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"last_affected": "2.3.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40331.json"
}
}
],
"modified": "2026-10-24T10:30:22.836099602Z",
"provider": "osv",
"references": [
"https://lists.apache.org/thread/s68yls6cnkdmzn1k4hqt50vs6wjvt2rn"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-40331",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 430783,
"published_at": "2023-05-05T08:15:08.683+00:00"
}