Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
Summary
Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
Original description
The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory github.com
- advisory lists.apache.org
- advisory nvd.nist.gov
- package github.com
- patch github.com
- report issues.apache.org
- web openwall.com
- web repo.maven.apache.org