apache/hive · Security
Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
- GHSA ID
- GHSA-6hqr-c69m-r76q
- CVE ID
- CVE-2022-41137
- Severity
- high
- Published
- Updated
- CVSS
- 8.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
- CVSS v3
- 8.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
- CVSS v4
- 7.2 · CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
Description
Apache Hive Metastore (HMS) uses SerializationUtilities#deserializeObjectWithTypeInformation method when filtering and fetching partitions that is unsafe and can lead to Remote Code Execution (RCE) since it allows the deserialization of arbitrary data.
In real deployments, the vulnerability can be exploited only by authenticated users/clients that were able to successfully establish a connection to the Metastore. From an API perspective any code that calls the unsafe method may be vulnerable unless it performs additional prerechecks on the input arguments.
CWEs
- CWE-502 · Deserialization of Untrusted Data
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-41137 ↗
- https://github.com/apache/hive/commit/60027bb9c91a93affcfebd9068f064bc1f2a74c9 ↗
- https://github.com/apache/hive ↗
- https://issues.apache.org/jira/browse/HIVE-26539 ↗
- https://lists.apache.org/thread/jwtr3d9yovf2wo0qlxvkhoxnwxxyzgts ↗
- http://www.openwall.com/lists/oss-security/2024/12/04/2 ↗
- https://github.com/advisories/GHSA-6hqr-c69m-r76q ↗