HIGH 8.3

CVE-2022-41137

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

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.hive » hive-exec
>= 4.0.0-alpha-1, < 4.0.0-alpha-2
4.0.0-alpha-2

Blast radius

1affected artifacts
1affected versions
23dependent artifacts (est.)
23dependent versions

0% of the dependent artifacts (0) still pull an affected version in their latest release.

DepthDependent versions
Direct
15
2 hops
3
3 hops
5

Most used dependents

Computed from the dependency graph of build 20261205.2030 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webissues.apache.org
Weblists.apache.org
Webopenwall.com