{"cve":"CVE-2022-40954","nvd":{"published":"2022-11-22T10:15:16.387","modified":"2026-06-17T05:02:17.277","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5},"cwes":["CWE-78"],"references":["https://github.com/apache/airflow/pull/27646","https://lists.apache.org/thread/0tmdlnmjs5t4gsx5fy73tb6zd3jztq45","https://github.com/apache/airflow/pull/27646","https://lists.apache.org/thread/0tmdlnmjs5t4gsx5fy73tb6zd3jztq45"],"products":["apache:airflow","apache:apache-airflow-providers-apache-spark"],"source":"nvd","synced_at":"2026-10-19T21:37:28.463369388+00:00"},"epss":{"cve":"CVE-2022-40954","score":0.0139,"percentile":0.7233,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-45r6-j3cc-6mxx","url":"https://osv.dev/vulnerability/GHSA-45r6-j3cc-6mxx","summary":"OS Command Injection in Apache Airflow","modified":"2026-07-07T11:56:37.423642822Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow","purl":"pkg:pypi/apache-airflow","ranges":["<2.3.0"],"fixed":["2.3.0"]}]},{"id":"PYSEC-2026-770","url":"https://osv.dev/vulnerability/PYSEC-2026-770","summary":"OS Command Injection in Apache Airflow","modified":"2026-07-07T11:56:37.423642822Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow","purl":"pkg:pypi/apache-airflow","ranges":["<2.3.0"],"fixed":["2.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}