← Back to overview

CVE-2026-49845 is a SQL injection vulnerability in Apache Hive's Metastore component affecting all versions before 4.2.1. The flaw exists in the direct SQL partition-name resolution path, where client-supplied partition names are embedded into SQL queries via string concatenation rather than parameterized bind statements. Authenticated users with access to Hive Metastore APIs can craft malicious partition names containing single quotes to manipulate the generated WHERE clause. This allows attackers to read, modify, truncate, or affect unintended partition metadata within tables they can reference. The vulnerability is present when metastore.try.direct.sql is enabled, which is the default configuration. Impact is scoped to partition and table targeting rather than arbitrary cross-database access. The fix is available in Apache Hive version 4.2.1, which replaces string concatenation with proper parameterized queries. Users are strongly advised to upgrade immediately.

Affected products

  • Apache Hive
  • Apache Hive Metastore

Related CVE's

  • CVE-2026-49845

Categories

  • Database & Storage
  • Enterprise Applications
  • Web Technologies