CVE-2025-62728 Apache Hive
| Affected software | Apache Hive |
|---|---|
| Severity | 5.4 Medium CVSS 3.1 |
| Fixed in | 4.2.0 |
| Weakness | SQL injection (CWE-89) |
| Published | 26 Nov 2025 |
| Updated | 17 Jun 2026 |
Description
SQL injection vulnerability in Hive Metastore Server (HMS) when processing delete column statistics requests via the Thrift APIs. The vulnerability is only exploitable by trusted/authorized users/applications that are allowed to call directly the Thrift APIs. In most real-world deployments, HMS is accessible to only a handful of applications (e.g., Hiveserver2) thus the vulnerability is not exploitable. Moreover, the vulnerable code cannot be reached when metastore.try.direct.sql property is set to false. This issue affects Apache Hive: from 4.1.0 before 4.2.0. Users are recommended to upgrade to version 4.2.0, which fixes the issue. Users who cannot upgrade directly are encouraged to set metastore.try.direct.sql property to false if the HMS Thrift APIs are exposed to general public.
Exploitation status
No public exploit
No exploit has been reported in the sources we check.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: none
- Indexed PoC none indexed
- EPSS 0.42% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full SQL injection
- Action available security rule
- Review automated Inferred
- Record active
| 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 weakness is CWE-89: SQL Injection. |
How to mitigate CVE-2025-62728
Upgrade Apache Hive to 4.2.0 or later. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
org.apache.hive:hive-common |
4.1.0 | 4.2.0 |
unbounded |
org.apache.hive:hive-metastore |
4.1.0 | 4.2.0 |
unbounded |
Products and versions
3 products, 3 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | apache | hive | generic | 4.1.0 |
| osv | org.apache.hive | hive-common | generic | ≥ 4.1.0 and < 4.2.0 |
| osv | org.apache.hive | hive-metastore | generic | ≥ 4.1.0 and < 4.2.0 |
References
Timeline
Timeline
| Published | 2025-11-26 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |