Deserialization in Apache Hive
CVE-2022-41137
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H.
EPSS exploit prediction
EPSS 0.016, 76.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Apache Hive — versions 4.0.0
- Apache Software Foundation Hive — versions 4.0.0-alpha-1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (oananbeh/LLM-Java-SVR-Benchmark, Wala-Alnozmai/SVD-Benchmark). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/apache/hive (Product, product)
- issues.apache.org/jira/browse/HIVE-26539 (issue-tracking, Issue Tracking)
- github.com/apache/hive/commit/60027bb9c91a93affcfebd9068f064bc1f2a74c9 (Patch, patch)
- lists.apache.org/thread/jwtr3d9yovf2wo0qlxvkhoxnwxxyzgts (vendor-advisory, Mailing List, Vendor Advisory)
- www.openwall.com/lists/oss-security/2024/12/04/2 (Mailing List, Third Party Advisory)