CVE-2022-40954: apache software foundation apache airflow OS Command Injection
Vulnerability summary
CVE-2022-40954 is a medium (CVSS 5.5) OS Command Injection vulnerability in apache software foundation apache airflow. EPSS estimates a 1.38% chance of exploitation in the next 30 days, higher than 71.6% of scored vulnerabilities.
Timeline
- 22-11-2022PublishedVulnerability first disclosed.
- 29-04-2025Last modifiedVulnerability information updated.
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).
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.38%
Chance of exploitation in the next 30 days
Percentile
72%
Versus all other CVEs
30-day change
-0.06 pp
From 1.44% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Apache2 products
- airflow< 2.3.0
- apache-airflow-providers-apache-spark< 4.0.0
Apache software foundation2 products
- apache airflow≥ unspecified, < 2.3.0
- apache airflow spark provider≥ unspecified, < 4.0.0
PyPI1 product
- apache-airflow< 2.3.0
3 vendors · 5 products
References
6 links- github.com/apache/airflowPACKAGE