OS Command Injection in Apache Airflow Hive Provider <4.1.0 / Airflow <2.3.0
CVE-2022-41131 Published on November 22, 2022
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).
Vulnerability Analysis
CVE-2022-41131 can be exploited with local system access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a Shell injection Vulnerability?
The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
CVE-2022-41131 has been classified to as a Shell injection vulnerability or weakness.
Products Associated with CVE-2022-41131
stack.watch emails you whenever new vulnerabilities are published in Apache AirFlow or Apache Airflow Providers Apache Hive. Just hit a watch button to start following.
Affected Versions
Apache Software Foundation Apache Airflow Hive Provider:- Version unspecified and below 4.1.0 is affected.
- Version 2.3.0 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.