WaratekVRT Sign in

CVE-2026-49845 Apache Hive

Affected softwareApache Hive
Severity9.8 Critical CVSS 3.1
WeaknessCode injection (CWE-94)
Published25 Aug 2026
Updated3 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.

  • 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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Products and versions

1 product, 1 version entry
SourceVendorProductSchemeAffected versions
nvd apache hive generic 4.2.0

References

URLTags
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

Published2026-08-25By the CVE Program.
NVD record modified2026-11-03NVD's own last-modified date for this record.