CVE-2022-40954
Executive Summary
Apache Airflow’s Spark Provider before version 4.0.0 contains an OS command injection flaw that allows an attacker to read arbitrary files within the task execution context, even without write access to DAG files. The vulnerability is triggered by improper neutralization of special elements in command strings. It also affects Airflow installations prior to 2.3.0 when the Spark Provider is present, because the provider can only be upgraded to 4.0.0 on Airflow 2.3.0 or newer. The fix is to upgrade the Spark Provider to 4.0.0 and ensure Airflow is at least 2.3.0.
Authoritative CVE Metadata
- CVSS Base Score: 5.5 (MEDIUM)
- Status: Modified
- Last Modified: 27-11-26
Original Description
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).