CVE-2022-40954
JSON

5.5medium

Apache Airflow Spark Provider RCE that bypass restrictions to read arbitrary files

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
1.33% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-45r6-j3cc-6mxxBIT-AIRFLOW-2022-40954PYSEC-2026-770

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).

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache Airflow Spark Providerbefore 4.0.0CVE List
Apache Software Foundation Apache Airflowbefore 2.3.0CVE List
apache-airflow (PyPI)before 2.3.0GitHub Advisory Database, PyPA Advisory Database
apache airflowbefore 2.3.0NVD
apache apache-airflow-providers-apache-sparkbefore 4.0.0NVD
airflow (Bitnami)before 2.3.0Bitnami Vulnerability Database

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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).

NVD (es)

Neutralización inadecuada de elementos especiales utilizados en una vulnerabilidad de comando del sistema operativo ('inyección de comando del sistema operativo') en Apache Airflow Spark Provider. Apache Airflow permite a un atacante leer archivos arbitrarios en el contexto de ejecución de la tarea, sin acceso de escritura a los archivos DAG. Este problema afecta a las versiones del proveedor Spark anteriores a la 4.0.0. También afecta cualquier versión de Apache Airflow anterior a la 2.3.0 en caso de que Spark Provider esté instalado (Spark Provider 4.0.0 solo se puede instalar para Airflow 2.3.0+). Tenga en cuenta que debe instalar manualmente Spark Provider versión 4.0.0 para eliminar la vulnerabilidad además de la versión Airflow 2.3.0+ que tiene instalada una versión inferior de Spark Provider).

References

Sources

SourceRecordLicence
CVE ListCVE-2022-40954 changed 2026-11-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-45r6-j3cc-6mxx changed 2026-07-07CC-BY-4.0
NVDCVE-2022-40954 changed 2026-11-27Public domain
PyPA Advisory DatabasePYSEC-2026-770 changed 2026-07-07CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-AIRFLOW-2022-40954 changed 2026-09-08Apache-2.0