Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-49845— Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths

Quick assessment

Affected
Apache Software Foundation Apache Hive
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Apache Hive 4.2.1 之前版本(所有平台)的 Hive Metastore 中,当启用直接 SQL(默认启用)时,存在 SQL 注入漏洞,位于通过直接 SQL 解析分区名称(partition-name resolution)的过程中。经过身份认证并有权访问 Hive Metastore API 的攻击者,可以通过在 Metastore RPC 请求中构造恶意分区名称,读取、修改或影响非预期的分区元数据(包括统计信息更新、截断目标以及文件元数据缓存操作)。建议用户升级至 4.2.1 版本以修复此问题。

AI Predicted 6.5 Difficulty: Easy

Affected Version Matrix 1

VendorProduct Version RangeStatus
Apache Software Foundation Apache Hive 4.0.0≤ 4.2.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-49845

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Apache Software Foundation Apache Hive 4.0.0 ~ 4.2.0 -

II. Public POCs for CVE-2026-49845

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49845

登录查看更多情报信息。

Patches & Fixes for CVE-2026-49845 (2)

Mailing List Discussions for CVE-2026-49845 (1)

Vendor Pages for CVE-2026-49845 (1)

Same Patch Batch · Apache Software Foundation · 2026-08-25 · 4 CVEs total

CVE-2026-55976 Apache Hive: SSRF vulnerability in Hive Avro Serde due to Insufficient input validation on
CVE-2026-53561 Apache Hive: Unauthenticated authentication bypass in HiveServer2 HTTP SAML bearer-token v
CVE-2026-49050 Apache DolphinScheduler: General user can mint admin access tokens via /access-tokens

IV. Related Vulnerabilities

V. Comments for CVE-2026-49845

No comments yet


Leave a comment