Home / Apache Software Foundation / Apache Hive / CVE-2026-49845
CVE-2026-49845: is it exploited, and which versions of Apache Software Foundation Apache Hive are affected and fixed?
CVE-2026-49845 is a code injection (remote code execution) vulnerability in Apache Software Foundation Apache Hive. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: Apache Hive from 4.0.0 through 4.2.0 (CVE record by apache). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:08 UTC.
What is CVE-2026-49845?
Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths
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.
From the CVE record by apache, last updated November 3, 2026, 22:13 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Hive org.apache.hive:hive-standalone-metastore | from 4.0.0 through 4.2.0 |
As the CVE record by apache states it, last updated November 3, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | hive | 4.2.0 | application |
NVD analysis (status Analyzed), last modified November 3, 2026, 23:17 UTC.
How severe is CVE-2026-49845?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-49845 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, August 26, 2026)
- EPSS
- 0.68% probability of exploitation activity in the next 30 days, percentile 53.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/apache/hive product
- https://github.com/apache/hive/commit/ca64f08a8e43db9845b47d5fa2e96f7fdea7288e patch
- https://issues.apache.org/jira/browse/HIVE-29622 issue-tracking
- https://lists.apache.org/thread/6d56mk501fp4f8cb5wvrpj2jwd9knt05 vendor-advisory
Who found and reported it?
- Leon Johnson (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 1, 2026
- Published
- August 25, 2026, 10:13 UTC
- CVE record updated
- November 3, 2026, 22:13 UTC by apache
- NVD
- Analyzed, last modified November 3, 2026, 23:17 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:08 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Hive?
- Aug 25, 2026CVE-2026-55976 Apache Software Foundation Apache Hive: server-side request forgery (SSRF)
- Aug 25, 2026CVE-2026-53561 Apache Software Foundation Apache Hive: authentication bypass (improper authentication)
- Nov 26, 2025CVE-2025-62728 Apache Software Foundation Apache Hive: SQL injection
- Jan 28, 2025CVE-2024-29869 Apache Software Foundation Apache Hive: incorrect permissions on a critical resource
- Jan 28, 2025CVE-2024-23953 Apache Software Foundation Apache Hive: timing side channel
- Dec 23, 2024CVE-2024-23945 Apache Software Foundation Apache Hive: information disclosure in error messages
- Dec 5, 2024CVE-2022-41137 Apache Software Foundation Apache Hive: deserialization of untrusted data
- May 3, 2024CVE-2023-35701 Apache Software Foundation Apache Hive: code injection (remote code execution)
Questions about CVE-2026-49845
Is CVE-2026-49845 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.68% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Apache Software Foundation Apache Hive are affected by CVE-2026-49845?
Apache Hive from 4.0.0 through 4.2.0, per the CVE record by apache. The tables above give every range the sources list.
Which version fixes CVE-2026-49845?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-49845?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2026-49845?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.