Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.hive/hive-exec
  4. ›
  5. CVE-2022-41137

CVE-2022-41137: Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore

December 5, 2024

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.

References

  • github.com/advisories/GHSA-6hqr-c69m-r76q
  • github.com/apache/hive
  • github.com/apache/hive/commit/60027bb9c91a93affcfebd9068f064bc1f2a74c9
  • issues.apache.org/jira/browse/HIVE-26539
  • lists.apache.org/thread/jwtr3d9yovf2wo0qlxvkhoxnwxxyzgts
  • nvd.nist.gov/vuln/detail/CVE-2022-41137

Code Behaviors & Features

Detect and mitigate CVE-2022-41137 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0-alpha-1 before 4.0.0-alpha-2, version 4.0.0-alpha-1

Fixed versions

  • 4.0.0-alpha-2

Solution

Upgrade to version 4.0.0-alpha-2 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

maven/org.apache.hive/hive-exec/CVE-2022-41137.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.