GHSA-6hqr-c69m-r76q

Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore

At a glance

Published
Updated
CVE
CVE-2022-41137
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
CVSS_V4
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.

Affected packages

PackageVersions
Maven · org.apache.hive:hive-execintroduced 4.0.0-alpha-1, fixed 4.0.0-alpha-2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database