CVE-2022-41137

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

Published Dec 5, 2024 CVSS 3.1 · 8.3 High EPSS 1.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6hqr-c69m-r76q Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
History
Type Values Removed Values Added
Metrics epss

{'score': 0.02312}

epss

{'score': 0.03869}

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:hive:4.0.0:alpha1:*:*:*:*:*:*
Type Values Removed Values Added
Metrics epss

{'score': 0.0163}

epss

{'score': 0.02312}

Type Values Removed Values Added
First Time appeared Apache
Apache hive
CPEs cpe:2.3:a:apache:hive:*:*:*:*:*:*:*:*
Vendors & Products Apache
Apache hive
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
Weaknesses CWE-502
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Dec 5, 2024, 5:02 PM
Reserved
Sep 20, 2022, 2:55 PM
Status
Analyzed
Published
Dec 5, 2024, 10:15 AM
Modified
Jun 17, 2026, 5:02 AM
Severity
Important
Public date
Dec 5, 2024, 10:01 AM