CVE-2022-41137: Apache Hive Exec Remote Code Execution Vulnerability

org.apache.hive:hive-exec Updated 02 Oct 2025

Summary

05/12/2024
Yes i
High
8.3

CVE-2022-41137: Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore. Affects org.apache.hive:hive-exec versions >= 4.0.0-alpha-1, < 4.0.0-alpha-2. Fixed in 4.0.0-alpha-2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Hive is a data warehousing and SQL-like query language system built on top of Hadoop. It allows users to manage and query large datasets stored in distributed storage. The Hive Metastore (HMS) is a critical component that stores metadata about the data stored in Hive. This vulnerability affects the 'hive-exec' package, which is responsible for executing Hive queries and managing data processing tasks.

Vulnerability Detail

The vulnerability arises from the use of the unsafe method SerializationUtilities#deserializeObjectWithTypeInformation in the Apache Hive Metastore when filtering and fetching partitions. This method allows for the deserialization of untrusted data, which can lead to Remote Code Execution (RCE). An attacker who has established a connection to the Metastore can exploit this vulnerability to execute arbitrary code on the server. The vulnerability is classified under CWE-502, indicating a deserialization of untrusted data.

How To Fix

Minimum fixed version

4.0.0-alpha-2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, ensure that only trusted users have access to the Metastore. Implement strict authentication and authorization controls to limit access to the Metastore and monitor for any suspicious activity.

Conclusion

The CVE-2022-41137 vulnerability in Apache Hive's 'hive-exec' package poses a significant risk due to the potential for Remote Code Execution. It is crucial for users to update to the patched version to mitigate this risk and ensure the security of their data processing environments.

See every vulnerability recorded for org.apache.hive:hive-exec →

Share this vulnerability

FAQ

CVE-2022-41137 is a vulnerability in Apache Hive that allows for Remote Code Execution due to unsafe deserialization of untrusted data in the Metastore.

Only authenticated users who have established a connection to the Metastore can exploit this vulnerability.

The vulnerability can lead to Remote Code Execution, allowing attackers to execute arbitrary code on the server, which can compromise the entire system.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.

The CVSS score of this vulnerability is 8.3, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.hive:hive-exec.

How To Fix

Minimum fixed version

4.0.0-alpha-2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback