Skip to main content
VulnerabilityPublished Updated

CVE-2026-49845: Apache Hive · Code Injection

Affects Apache HiveSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.8 Critical · fixed in 4.2.1 : patch Apache Hive as a priority.

Data as of 21 Nov 2026, 17:35 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.19.8
EPSS
0.8% chance of exploitation in 30 days – higher than 60% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.2.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Apache Hiveorg.apache.hive:hive-standalone-metastoreAffected
  • >=4.0.0 <=4.2.0
Fixed in–
Mavenorg.apache.hive/hive-standalone-metastorepkg:maven/org.apache.hive/hive-standalone-metastoreOther threatsAffected
  • >=4.0.0 <=4.2.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Users should upgrade Apache Hive to version 4.2.1 or later, where this vulnerability is fixed. Since the issue arises when direct SQL is enabled (default true), disabling direct SQL could mitigate the risk temporarily, but upgrading is the recommended and definitive remediation. No other vendor advisory or patch links are provided, so users should rely on the official Apache Hive 4.2.1 release for the fix.

Description

CVE-2026-49845 is a critical code injection vulnerability in Apache Hive versions 4.0.0 through 4.2.0. It arises from SQL injection in the Hive Metastore's direct SQL partition-name resolution when direct SQL is enabled (default true). Authenticated users with access to Hive Metastore APIs can exploit crafted partition names containing malicious SQL to read or modify unintended partition metadata, affecting operations such as statistics updates, truncation targets, and file-metadata cache. The issue is fixed in Apache Hive version 4.2.1.

References

Community reviews

Loading reviews…