CVE-2022-41137
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.
How to fix
- org.apache.hive:hive-exec4.0.0-alpha-2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache hive | 4.0.0 | — |
| org.apache.hive:hive-execMaven | 4.0.0-alpha-1 ≤ v < 4.0.0-alpha-2 | 4.0.0-alpha-2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.