CVE-2022-40954
MEDIUM 5.5CVSS 3.1Apache Airflow Spark Provider RCE that bypass restrictions to read arbitrary files
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).
- Published
- 22 Nov 2022
- Last modified
- 27 Nov 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- BIT-airflow-2022-40954GHSA-45r6-j3cc-6mxxPYSEC-2026-770
- Sources
- NVDJSONCVE ListJSONOSV GHSA-45r6-j3cc-6mxxJSONOSV PYSEC-2026-770JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| CVE List | CISA-ADP | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | airflowcpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:* |
< 2.3.0 | 2.3.0 |
| NVD | apache | apache-airflow-providers-apache-sparkcpe:2.3:a:apache:apache-airflow-providers-apache-spark:*:*:*:*:*:*:*:* |
< 4.0.0 | 4.0.0 |
| CVE List | Apache Software Foundation | Apache Airflow Spark Provider | < 4.0.0 | 4.0.0 |
| CVE List | Apache Software Foundation | Apache Airflow | < 2.3.0 | 2.3.0 |
| OSV | PyPI | apache-airflow | < 2.3.0 | 2.3.0 |
References
- https://github.com/apache/airflow/pull/27646 · Patch, Third Party Advisory, WEB
- https://lists.apache.org/thread/0tmdlnmjs5t4gsx5fy73tb6zd3jztq45 · Mailing List, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-40954 · ADVISORY
- https://github.com/apache/airflow · PACKAGE
- https://pypi.org/project/apache-airflow · PACKAGE
- https://github.com/advisories/GHSA-45r6-j3cc-6mxx · ADVISORY
History
- 27 Nov 2026 14:57 UTC · NVD: updated (other details)
- 27 Nov 2026 13:57 UTC · CVE List: first stored (published 22 Nov 2022)
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 22 Nov 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Nov 2022)