Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-34538

Apache Hive before 3.1.3 "CREATE" and "DROP" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-34538
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:47 UTC · Revision 1

Source evidence

CVE-2021-34538

core-osv · Original source

Published 16 Jul 2022, 07:15 UTC

Apache Hive before 3.1.3 "CREATE" and "DROP" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.

osv:CVE-2021-34538
Complete source record
{
  "id": "7b373da14333ace21cda65082b4c61f9449db5e551a0601f7f8dfc4f4c150eb2",
  "url": "https://osv.dev/vulnerability/CVE-2021-34538",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-34538",
    "summary": "Apache Hive before 3.1.3 \"CREATE\" and \"DROP\" function operations does not check for necessary authorization of involved entities in the query. It was found that an unauthorized user can manipulate an existing UDF without having the privileges to do so. This allowed unauthorized or underprivileged users to drop and recreate UDFs pointing them to new jars that could be potentially malicious.",
    "evidence": "osv:CVE-2021-34538",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-34538",
      "aliases": [
        "CVE-2021-34538",
        "GHSA-v3p8-j597-3xg8"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/hive",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4df4d75bf1e16fe0af75aad0b4179c34c07fc975"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:hive:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.1.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "release-3.1.3-rc1",
            "release-3.1.3-rc0",
            "branch-3.1.3-rc0",
            "rel/release-3.1.2",
            "release-3.1.2-rc0",
            "rel/release-3.1.1",
            "rel/release-3.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-34538.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:44.517701425Z",
      "provider": "osv",
      "references": [
        "https://lists.apache.org/thread/oqqgnhz4c6nxsfd0xstosnk0g15f7354"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-34538",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 435903,
  "published_at": "2022-07-16T07:15:08.53+00:00"
}