CVE-2022-41131: Apache Airflow Hive Provider vulnerability (command injection via hive_cli connection)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airflow Hive Provider, Apache Airflow allows an attacker to execute arbtrary commands in the task execution context, without write access to DAG files. This issue affects Hive Provider versions prior to 4.1.0. It also impacts any Apache Airflow versions prior to 2.3.0 in case HIve Provider is installed (Hive Provider 4.1.0 can only be installed for Airflow 2.3.0+). Note that you need to manually install the HIve Provider version 4.1.0 in order to get rid of the vulnerability on top of Airflow 2.3.0+ version that has lower version of the Hive Provider installed).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache Airflow Hive Providerto a version that resolves this vulnerability.Fixed in 4.1.0 - Upgrade
Upgrade
Apache Airflowto a version that resolves this vulnerability.Fixed in 2.3.0
Event History
Frequently Asked Questions
What is the vulnerability ID for this security issue?
The vulnerability ID for this security issue is CVE-2022-41131.
What is the severity of CVE-2022-41131?
CVE-2022-41131 has a severity rating of 7.8, which is considered high.
Which software is affected by CVE-2022-41131?
CVE-2022-41131 affects Apache Airflow and Apache Airflow Hive Provider versions up to 2.3.0 and 4.1.0 respectively.
What is the description of CVE-2022-41131?
CVE-2022-41131 is an OS Command Injection vulnerability in Apache Airflow Hive Provider, allowing an attacker to execute arbitrary commands in the task execution context without write access to DAG files.
Are there any references or resources related to CVE-2022-41131?
Yes, you can find more information about CVE-2022-41131 at the following references: [1] https://github.com/apache/airflow/pull/27647 [2] https://lists.apache.org/thread/wwo3qp0z8gv54yzn7hr04wy4n8gb0vhl