WaratekVRT Sign in

CVE-2022-41137 Apache Hive

Affected softwareApache Hive
Severity8.3 High CVSS 3.1
Fixed in4.0.0-alpha-2
WeaknessDeserialization of untrusted data (CWE-502)
Published5 Dec 2024
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published a year ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 1.6% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR deserialization security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-502: Deserialization of Untrusted Data.
Candidate fix https://github.com/apache/hive/commit/60027bb9c91a93affcfebd9068f064bc1f2a74c9 : a commit: the change itself

How to mitigate CVE-2022-41137

Upgrade Apache Hive to 4.0.0-alpha-2 or later. Until you can, Waratek RASP blocks exploitation with its deserialization and process rules. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.hive:hive-exec 4.0.0-alpha-1 4.0.0-alpha-2 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache hive generic 4.0.0:alpha1
osv org.apache.hive hive-exec generic ≥ 4.0.0 and < 4.0.0

References

URLTags
https://github.com/apache/hive/commit/60027bb9c91a93affcfebd9068f064bc1f2a74c9 commit
https://github.com/apache/hive PACKAGE
https://issues.apache.org/jira/browse/HIVE-26539 WEB
https://lists.apache.org/thread/jwtr3d9yovf2wo0qlxvkhoxnwxxyzgts WEB
http://www.openwall.com/lists/oss-security/2024/12/04/2 WEB

Timeline

Published2024-12-05By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.