Skip to content
Fencer Vulns
high 8.3

CVE-2022-41137 json

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

published 2024-12-05 23 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-3437 , GHSA-6hqr-c69m-r76q

cvss
8.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.6%
EPSS 1.6% chance of exploitation in 30 days, percentile 76%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.apache.hive:hive-exec 4.0.0-alpha-2
  • Apache Software Foundation Apache Hive 4.0.0
  • apache hive 4.0.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-41137 updated cvss 8.3

hive-metastore: org.apache.hive:hive-metastore: Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore

  • Red Hat Fuse 7 org.spark-project.hive/hive-metastore org.spark-project.hive/hive-metastore
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Integration Camel K 1 org.spark-project.hive/hive-metastore org.spark-project.hive/hive-metastore Red Hat JBoss Data Grid 7 org.spark-project.hive/hive-metastore org.spark-project.hive/hive-metastore
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
23 mo ago

Exploit prediction

1.65% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
GitHub 3.1 8.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
CNA 3.1 8.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.hive:hive-exec
>=4.0.0-alpha-1, <4.0.0-alpha-2
4.0.0-alpha-2

Affected products

  • Apache Software Foundation Apache Hive
  • apache hive

Classification

Weakness
  • CWE-502 Deserialization of Untrusted Data

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.