CVE-2022-40954: Apache Airflow Spark Provider RCE that bypass restrictions to read arbitrary files
This Apache advisory covers CVE-2022-40954 in Apache Airflow Spark Provider.
- CVE-2022-40954
Am I affected by CVE-2022-40954?
You are affected if you run Apache Airflow Spark Provider at one of the versions below. If you do, upgrade to the fixed release listed for your version.
| Affected | Fixed in |
|---|---|
| Apache Airflow Spark Provider before 4.0.0 | 4.0.0 |
| Apache Airflow before 2.3.0 | 2.3.0 |
Official advisory · high-confidence parse· fetched ·verify at source
Key facts
- Vendor rating
- Medium, CVSS 5.5
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N· base score 5.5, scored by CISA-ADPAttack vector: local. Attack complexity: low. Privileges required: low. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: none. Availability impact: none.- Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- EPSS
- 1.33% chance of exploitation in the next 30 days (72nd percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: partial. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Source published
- Source revised
- Listed by VulniPulse
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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).
Text from the source record.
How to fix CVE-2022-40954
Upgrade to the first fixed release for your version, shown in the table above.
Vendor guidance
- 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).
Support dates for the fixed release lines
- Apache Airflow 2: support ended
CVE-2022-40954 questions
Is CVE-2022-40954 being exploited?
CISA does not list it in its Known Exploited Vulnerabilities catalog (checked ), and the Apache advisory does not report exploitation. That is not proof it is unexploited.
Am I affected by CVE-2022-40954?
You are affected if you run Apache Airflow Spark Provider at one of the versions below. If you do, upgrade to the fixed release listed for your version. The table above lists each version.
How do I fix CVE-2022-40954?
Upgrade to a fixed release Apache lists for your version: 4.0.0, 2.3.0. The advisory's own guidance is above.
How likely is CVE-2022-40954 to be exploited?
FIRST's EPSS model gives it a 1.33% chance of exploitation in the next 30 days (72nd percentile among scored CVEs, model date ). It is a forecast, not a report of attacks.
How serious is CVE-2022-40954?
Apache rates it medium, CVSS 5.5 out of 10.
More Apache Software Foundation advisories
CVE-2026-48963Dec 5, 2026Apache Solr: Rule-Based Authorization 'READ' permission gives unexpected accessCVE-2026-130019Dec 4, 2026Apache Polaris: Improper verification of table metadataCVE-2026-130017Dec 4, 2026Apache Polaris: Improper validation of file paths in cleanup operationsCVE-2026-130015Dec 4, 2026Apache Polaris: Incorrect authorization in location overlap validationCVE-2026-129974Dec 4, 2026Apache Polaris: Incorrect authorization in table rename operationCVE-2026-129962Dec 4, 2026Apache Polaris: Incorrect validation in handling of catalog allowed locations
Apache Software Foundation advisories, November 2022All Apache Software Foundation advisories
Get an email when Apache Airflow publishes the next one.
See Apache Airflow's last 90 days first. Live alerts for one product are free for life; every vendor is US$5 a month with Pro (first month US$1).