cve.bz

CVE-2022-41137 apache hive: Deserialization of Untrusted Data

8.3 highEPSS 1.6%Fix available

High (8.3) in apache hive. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.hive:hive-exec 4.0.0-alpha-2.

On this page
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.

Severity

CVSS 3.1

8.3 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-12-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-41137 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-41137?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-41137?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-41137 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Hivefrom 4.0.0-alpha-1 before 4.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6hqr-c69m-r76qMavenorg.apache.hive:hive-exec>=4.0.0-alpha-1 <4.0.0-alpha-24.0.0-alpha-2

Red Hat

Red Hat rates this Important.

Red Hat's statement

The Metastore component is used to stores the structure information of tables and partitions in the warehouse, meaning this issue impacts mainly the integrity and availability of the system.

Red Hat's mitigation

Any code that calls the unsafe method may be vulnerable unless it performs additional checks on the input arguments. Implementing additional validations on input arguments before passing them to the SerializationUtilities#deserializeObjectWithTypeInformation method might mitigate or decrease this risk.

ProductPackageStateAdvisory
Red Hat Fuse 7org.spark-project.hive/hive-metastoreOut of support scope
Red Hat Integration Camel K 1org.spark-project.hive/hive-metastoreNot affected
Red Hat JBoss Data Grid 7org.spark-project.hive/hive-metastoreNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-41137.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON