CVE-2026-49845 Apache Hive
| Affected software | Apache Hive |
|---|---|
| Severity | 9.8 Critical CVSS 3.1 |
| Weakness | Code injection (CWE-94) |
| Published | 25 Aug 2026 |
| Updated | 3 Nov 2026 |
Published 2 months ago. NVD often adds the list of affected products days or weeks after a CVE is published, and the other sources we check lag too. The scope and status here may change.
Description
SQL injection in Hive Metastore direct SQL partition-name resolution in Apache Hive before 4.2.1 on all platforms allows authenticated users with access to Hive Metastore APIs to read, modify, or affect unintended partition metadata (including statistics updates, truncation targets, and file-metadata cache operations) via crafted partition names in metastore RPC requests when direct SQL is enabled (the default). Users are recommended to upgrade to version 4.2.1, which fixes this issue. Details about the issue: Several Hive Metastore RPCs resolve partitions by full partition name (PART_NAME) through direct-SQL helpers. In those paths, client-supplied partition names are embedded into SQL using string concatenation (DirectSqlUpdatePart.quoteString() → '...') instead of bind parameters. A partition name containing a single quote (and crafted SQL) can alter the generated WHERE clause so that lookups intended for one partition match additional rows. That can affect reads, stats updates, truncate targets, metadata-cache targets, and related operations when metastore.try.direct.sql is enabled (default: true). An authenticated or network-trusted caller with the ability to invoke Hive Metastore partition-name APIs against a target table (directly or via Hive/other clients), when direct SQL is enabled can perform this attack. Also, the impact is mainly within table & partition targeting (read/update/truncate/drop/cache the wrong partitions in a table they can reference), not arbitrary cross-database access via this bug alone.
Exploitation status
No public exploit
No exploit has been reported in the sources we check.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: none
- Indexed PoC none indexed
- EPSS 0.89% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full SQL injection
- Action available security rule
- Review automated Inferred
- Record active
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR sql-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's description identifies a SQL injection vulnerability. Matched by description (CWE-94 was assigned, but does not settle the class on its own). |
| Candidate fix | https://github.com/apache/hive/commit/ca64f08a8e43db9845b47d5fa2e96f7fdea7288e : a commit: the change itself |
How to mitigate CVE-2026-49845
Apply the vendor's fix for Apache Hive. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.
Affected software and releases
Products and versions
1 product, 1 version entry| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | apache | hive | generic | 4.2.0 |
References
| URL | Tags |
|---|---|
| https://github.com/apache/hive/commit/ca64f08a8e43db9845b47d5fa2e96f7fdea7288e | commit |
| https://github.com/apache/hive | Product |
| https://issues.apache.org/jira/browse/HIVE-29622 | Vendor Advisory |
| https://lists.apache.org/thread/6d56mk501fp4f8cb5wvrpj2jwd9knt05 | Mailing List, Vendor Advisory |
Timeline
Timeline
| Published | 2026-08-25 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-11-03 | NVD's own last-modified date for this record. |