OS Command Injection in Airflow Spark Prov <4.0.0 / Airflow <2.3.0
CVE-2022-40954 Published on November 22, 2022
Apache Airflow Spark Provider RCE that bypass restrictions to read arbitrary files
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airflow Spark Provider, Apache Airflow allows an attacker to read arbtrary files in the task execution context, without write access to DAG files. This issue affects Spark Provider versions prior to 4.0.0. It also impacts any Apache Airflow versions prior to 2.3.0 in case Spark Provider is installed (Spark Provider 4.0.0 can only be installed for Airflow 2.3.0+). Note that you need to manually install the Spark Provider version 4.0.0 in order to get rid of the vulnerability on top of Airflow 2.3.0+ version that has lower version of the Spark Provider installed).
Vulnerability Analysis
CVE-2022-40954 is exploitable 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 have a high impact on confidentiality, with no impact on integrity and availability.
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-40954 has been classified to as a Shell injection vulnerability or weakness.
Products Associated with CVE-2022-40954
stack.watch emails you whenever new vulnerabilities are published in Apache AirFlow or Apache Airflow Providers Apache Spark. Just hit a watch button to start following.
Affected Versions
Apache Software Foundation Apache Airflow Spark Provider:- Version unspecified and below 4.0.0 is affected.
- Version unspecified and below 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.