WaratekVRT Sign in

CVE-2025-62728 Apache Hive

Affected softwareApache Hive
Severity5.4 Medium CVSS 3.1
Fixed in4.2.0
WeaknessSQL injection (CWE-89)
Published26 Nov 2025
Updated17 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.

  • 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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
https://github.com/apache/hive/commit/c18d0df2702130cf5d0f050e516eb8999aa56301 WEB
https://github.com/apache/hive PACKAGE
https://issues.apache.org/jira/browse/HIVE-29269 WEB
https://lists.apache.org/thread/yj65dd8dmzgy8p3nv8zy33v8knzg9o7g WEB
http://www.openwall.com/lists/oss-security/2025/11/26/3 WEB

Timeline

Published2025-11-26By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.