Apache Hive: Deserialization of untrusted data when fetching partitions from the Metastore
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Hive | 4.0.0-alpha-1 to before 4.0.0 | 4.0.0 | Patch available | CNA |
| — | org.apache.hive:hive-exec (Maven) | 4.0.0-alpha-1 to before 4.0.0-alpha-2 | 4.0.0-alpha-2 | Patch available | GHSA-6hqr-c69m-r76q |
- Apache Hive VendorApache Affected 4.0.0-alpha-1 to before 4.0.0 Fixed in 4.0.0 Patch available CNA
- org.apache.hive:hive-exec (Maven) Vendor— Affected 4.0.0-alpha-1 to before 4.0.0-alpha-2 Fixed in 4.0.0-alpha-2 Patch available GHSA-6hqr-c69m-r76q
Remediation
- Fix · CNA Apache Hive (Apache Software Foundation) Fixed in 4.0.0
- Fix · GHSA-6hqr-c69m-r76q org.apache.hive:hive-exec (Maven) Fixed in 4.0.0-alpha-2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix planned: Out of support scope |
Not affected: 2 products
- Red Hat Integration Camel K 1
- Red Hat JBoss Data Grid 7
Timeline
- 2026-10-02 Threatist record created from CVE-2022-41137
- 2026-10-03 Alias added: GHSA-6hqr-c69m-r76q
References
Advisory 3
More Apache Hive vulnerabilities
- TI-2018-15196 Jodd before 5.0.4 performs Deserialization of Untrusted JSON Data when setClassMetadataName is set. CVSS 3.1CRITICAL 9.8
- TI-2026-40376 Apache Hive: SSRF vulnerability in Hive Avro Serde due to Insufficient input validation on avro.schema.url CVSS 3.1CRITICAL 9.1
- TI-2018-01187 SQL injection in Apache Hive CVSS 3.0CRITICAL 9.1
- TI-2026-36749 Apache Hive: SQL Injection vulnerability in HiveMetaStore partition-name direct-SQL paths CVSS 3.1CRITICAL 9.8
- TI-2015-06259 The authorization framework in Apache Hive 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0 and 1.2.1… CVSS 3.0HIGH 8.3
- TI-2020-10925 Uncontrolled resource consumption in Apache Thrift CVSS 3.1HIGH 7.5
Sources
- CVE-2022-41137 · CVE Program
- CVE-2022-41137 · NVD
- FIRST EPSS
- GHSA-6hqr-c69m-r76q · GitHub Advisory Database · CC BY 4.0
- CVE-2022-41137 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences