GitHub Advisoryadvisory · Maven
GHSA-6hqr-c69m-r76q Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
HIGH
Official page ↗
- Aliases
- CVE-2022-41137
- Ecosystem
- Maven
- Packages
- org.apache.hive:hive-exec
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
- Weaknesses
- CWE-502
- Reviewed
- 2024-12-05
Affected packages
• Maven org.apache.hive:hive-exec: >= 4.0.0-alpha-1, < 4.0.0-alpha-2 → fixed in 4.0.0-alpha-2
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.
Related
Alias · CVE (1)
- CVE-2022-41137 Apache Hive Metastore (HMS) uses SerializationUtilities#deserializeObjectWithTypeInformation method when filtering and fetching partitions… vulnerability
Weakness · CWE (1)
- CWE-502 Deserialization of Untrusted Data weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-41137 advisory
- https://github.com/apache/hive/commit/60027bb9c91a93affcfebd9068f064bc1f2a74c9 web
- https://github.com/apache/hive package
- https://issues.apache.org/jira/browse/HIVE-26539 web
- https://lists.apache.org/thread/jwtr3d9yovf2wo0qlxvkhoxnwxxyzgts web
- http://www.openwall.com/lists/oss-security/2024/12/04/2 web