CVE-2022-40954Apache Airflow OS Command Injection
NVDCVSS scored by NVD (NIST)
Vulnerability Summary
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 v3.1 Base Metrics — Score 5.5 (MEDIUM)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NAttack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone
Affected & Patched Versions
- Apache Airflow < 2.3.0
- Apache-airflow-providers-apache-spark < 4.0.0
- Apache Software Foundation Apache Airflow Spark Provider < 4.0.0
- Apache Software Foundation Apache Airflow < 2.3.0
- Apache Airflow 2.3.0
- Apache-airflow-providers-apache-spark 4.0.0
- Apache Software Foundation Apache Airflow Spark Provider 4.0.0
- Apache Software Foundation Apache Airflow 2.3.0
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Apache Airflow and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 22, 2022Published
- Nov 27, 2026Record last modified
- Nov 27, 2026CVSS score changed: 0.0 to 5.5
- Nov 27, 2026Severity changed to MEDIUM
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Apache Airflow CVEsYou are reading CVE-2022-40954. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 27, 2026 18:37 UTC