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

Published Nov 26, 2025
·
Updated

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.

Affected Software

4 affected componentsFixes available
Apache Hive>=4.1.0<4.2.0
maven/org.apache.hive:hive-metastore>=4.1.0<4.2.0
4.2.0
maven/org.apache.hive:hive-common>=4.1.0<4.2.0
4.2.0
Apache Hive=4.1.0

Event History

Nov 26, 2025
CVE Published
via MITRE·08:45 AM
Data Sourced
via MITRE·08:45 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:31 AM
Data Sourced
via GitHub·09:31 AM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62728?

CVE-2025-62728 is considered a high severity vulnerability due to its potential for SQL injection exploitation.

2

How do I fix CVE-2025-62728?

To fix CVE-2025-62728, upgrade to a patched version of Apache Hive that is beyond 4.2.0.

3

Who can exploit CVE-2025-62728?

CVE-2025-62728 can be exploited by trusted or authorized users who have access to the Thrift APIs.

4

What versions of Hive are affected by CVE-2025-62728?

CVE-2025-62728 affects Apache Hive versions from 4.1.0 to 4.2.0.

5

What is the impact of CVE-2025-62728 on data security?

CVE-2025-62728 could allow an attacker to execute arbitrary SQL commands, resulting in unauthorized data access or modification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203