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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.hive » hive-exec | >= 4.0.0-alpha-1, < 4.0.0-alpha-2 | 4.0.0-alpha-2 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 15 |
| 2 hops | 3 |
| 3 hops | 5 |
Most used dependents
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-service301 usages
- org.apache.hive.hcatalog » hive-hcatalog-core96 usages
- org.apache.hive » hive-cli71 usages
- org.apache.hive.hcatalog » hive-webhcat-java-client42 usages
- org.apache.hive » hive-contrib40 usages
- org.apache.hive.hcatalog » hive-hcatalog-server-extensions21 usages
- org.apache.hive » hive-hbase-handler19 usages
- org.apache.hive » hive-beeline16 usages
- org.apache.hive.hcatalog » hive-hcatalog-pig-adapter12 usages
- org.apache.hive » hive-llap-server12 usages
- org.apache.hive » hive-streaming8 usages
- org.apache.hive » hive-iceberg-handler7 usages
- org.apache.hive » hive-llap-ext-client7 usages
- org.apache.hive » hive-hplsql6 usages
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
| Advisory | NVD CVE-2022-41137 | nvd.nist.gov |
| Package | apache/hive | github.com |
| Web | apache/hive commit 60027bb | github.com |
| Web | jira/browse/HIVE-26539 | issues.apache.org |
| Web | thread/jwtr3d9yovf2wo0qlxvkhoxnwxxyzgts | lists.apache.org |
| Web | lists/oss-security/2024/12/04/2 | openwall.com |
