CVE-2022-41137 Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
HighCVSS 8.3
EPSS 1.6%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| apache hive | = 4.0.0-alpha1; >= 4.0.0-alpha-1, < 4.0.0 | 4.0.0 | Fixed |
| org.apache.hive/hive-exec(Maven) | = 4.0.0-alpha-1; >= 4.0.0-alpha-1, < 4.0.0; >= 4.0.0-alpha-1, < 4.0.0-alpha-2 | 4.0.0, 4.0.0-alpha-2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.hive/hive-exec(Maven) | >= 4.0.0-alpha-1, < 4.0.0-alpha-2 | 4.0.0-alpha-2 |
| org.apache.hive/hive-exec(Maven) | = 4.0.0-alpha-1 | No fix listed |
| org.apache.hive/hive-exec(Maven) | >= 4.0.0-alpha-1, < 4.0.0 | 4.0.0 |
| apache hive | >= 4.0.0-alpha-1, < 4.0.0 | 4.0.0 |
| apache hive | = 4.0.0-alpha1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- issues.apache.org issue-tracking
- lists.apache.org mailing-list vendor-advisory
- www.openwall.com mailing-list third-party-advisory
- github.com