CVE-2026-49845: Apache Hive · Code Injection
Affects Apache HiveSource CVE Database V5
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
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 9.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:HExploitation evidence
Disclosed: evidence found.
CVE published 25 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| Apache Hiveorg.apache.hive:hive-standalone-metastore | Affected
| Fixed in– |
Mavenorg.apache.hive/hive-standalone-metastorepkg:maven/org.apache.hive/hive-standalone-metastoreOther threats | Affected
| 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.