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

Goal: 1000 CNY · Raised: 1359 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是美国Apache基金会的一款数据仓库基础架构软件。 Apache Hive 4.2.1之前版本存在代码注入漏洞,该漏洞源于直接SQL分区名解析时使用字符串拼接而非绑定参数,可能导致经过身份验证的用户通过特制分区名称读取、修改或影响非预期分区元数据。

AI Predicted 6.5 Difficulty: Easy EPSS 0.89% · P58

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
Vulnerability Title
Apache Hive 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Apache Hive是美国Apache基金会的一款数据仓库基础架构软件。 Apache Hive 4.2.1之前版本存在代码注入漏洞,该漏洞源于直接SQL分区名解析时使用字符串拼接而非绑定参数,可能导致经过身份验证的用户通过特制分区名称读取、修改或影响非预期分区元数据。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

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 · 14 CVEs total

CVE-2026-49050 Apache DolphinScheduler: General user can mint admin access tokens via /access-tokens
CVE-2026-53561 Apache Hive: Unauthenticated authentication bypass in HiveServer2 HTTP SAML bearer-token v
CVE-2026-55976 Apache Hive: SSRF vulnerability in Hive Avro Serde due to Insufficient input validation on
CVE-2026-65182 Apache Tomcat: Bypass longest prefix security constraint
CVE-2026-65183 Apache Tomcat: TOCTOU when setting specific permissions for Unix Domain Sockets
CVE-2026-65637 Apache Tomcat: HTTP/2 no-authority bypass of strict SNI validation - CVE-2026-32990 fix in
CVE-2026-65905 Apache Tomcat: Limited replay attack possible with DIGEST authentication
CVE-2026-65927 Apache Tomcat: RewriteValve [N] restarts at the second rule and may bypass access control
CVE-2026-66422 Apache Tomcat: Servlet role references can bypass declarative role constraints
CVE-2026-68525 Apache Tomcat: Redirect after FORM auth may bypass method specific constraints
CVE-2026-68569 Apache Tomcat: Principal lookup can fail open in some cases
CVE-2026-68763 Apache Tomcat: DoS via allocation leak in HTTP/2 backlog tracking when a stream is reset
CVE-2026-73180 Apache Tomcat: Authenticated WebSocket session survives end of HTTP session

IV. Related Vulnerabilities

V. Comments for CVE-2026-49845

No comments yet


Leave a comment