CVE-2022-46421:
Apache Airflow Hive Provider vulnerable to Command Injection
9.8
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
12/20/2022
Updated
1/28/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
apache-airflow-providers-apache-hive | pip | < 5.0.0 | 5.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how 'hive_cli_params' were handled before being passed to Hive CLI commands. The fix in PR #28101 moved these parameters from connection configuration (user-managed) to hook parameters (code-managed), indicating the original implementation in HiveCliHook.run_cli used unsanitized user input from connections to build OS commands. This matches the CWE-77 pattern of command injection via untrusted input in command execution contexts.