{"schema":"threatline.record/2","record":{"id":"CVE-2022-40189","aliases":["BIT-airflow-2022-40189","GHSA-rmf2-pwfq-h75j","PYSEC-2026-270"],"summary":"OS Command Injection in Apache Airflow","details":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airflow Pig Provider, Apache Airflow allows an attacker to control commands executed in the task execution context, without write access to DAG files. This issue affects Pig Provider versions prior to 4.0.0. It also impacts any Apache Airflow versions prior to 2.3.0 in case Pig Provider is installed (Pig Provider 4.0.0 can only be installed for Airflow 2.3.0+). Note that you need to manually install the Pig Provider version 4.0.0 in order to get rid of the vulnerability on top of Airflow 2.3.0+ version.","categories":["Libraries & packages"],"product":"apache-airflow","vendor":"Apache Software Foundation","ecosystem":"pip","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-rmf2-pwfq-h75j","source_modified_at":"2026-10-26T21:11:40Z","fetched_at":"2026-10-26T23:45:56.352924Z","package":{"ecosystem":"pip","name":"apache-airflow"},"range":"< 2.3.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2022-40189","source_modified_at":"2025-04-29T04:25:48.603Z","fetched_at":"2026-10-26T23:45:56.352924Z","product":"Apache Airlfow Pig Provider","vendor":"Apache Software Foundation","versions":[{"version":"unspecified","lessThan":"4.0.0","status":"affected","versionType":"custom"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2022-40189","source_modified_at":"2025-04-29T04:25:48.603Z","fetched_at":"2026-10-26T23:45:56.352924Z","product":"Apache Airflow ","vendor":"Apache Software Foundation","versions":[{"version":"unspecified","lessThan":"2.3.0","status":"affected","versionType":"custom"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-rmf2-pwfq-h75j","source_modified_at":"2026-10-26T21:30:04.163640168Z","fetched_at":"2026-10-26T23:45:56.352924Z","package":{"name":"apache-airflow","ecosystem":"PyPI","purl":"pkg:pypi/apache-airflow"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0"}]}],"versions":["1.10.0","1.10.1","1.10.10","1.10.10rc1","1.10.10rc2","1.10.10rc3","1.10.10rc4","1.10.10rc5","1.10.11","1.10.11rc1","1.10.11rc2","1.10.12","1.10.12rc1","1.10.12rc2","1.10.12rc3","1.10.12rc4","1.10.13","1.10.13rc1","1.10.14","1.10.14rc1","1.10.14rc2","1.10.14rc3","1.10.14rc4","1.10.15","1.10.15rc1","1.10.1b1","1.10.1rc2","1.10.2","1.10.2b2","1.10.2rc1","1.10.2rc2","1.10.2rc3","1.10.3","1.10.3b1","1.10.3b2","1.10.3rc1","1.10.3rc2","1.10.4","1.10.4b2","1.10.4rc1","1.10.4rc2","1.10.4rc3","1.10.4rc4","1.10.4rc5","1.10.5","1.10.5rc1","1.10.6","1.10.6rc1","1.10.6rc2","1.10.7"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-rmf2-pwfq-h75j","source_modified_at":"2026-10-26T21:11:40Z","fetched_at":"2026-10-26T23:45:56.352924Z","package":{"ecosystem":"pip","name":"apache-airflow"},"version":"2.3.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2022-40189","source_modified_at":"2025-04-29T04:25:48.603Z","fetched_at":"2026-10-26T23:45:56.352924Z","package":{"name":"Apache Airlfow Pig Provider","ecosystem":null},"version":"4.0.0","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2022-40189","source_modified_at":"2025-04-29T04:25:48.603Z","fetched_at":"2026-10-26T23:45:56.352924Z","package":{"name":"Apache Airflow ","ecosystem":null},"version":"2.3.0","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-rmf2-pwfq-h75j","source_modified_at":"2026-10-26T21:30:04.163640168Z","fetched_at":"2026-10-26T23:45:56.352924Z","package":{"name":"apache-airflow","ecosystem":"PyPI","purl":"pkg:pypi/apache-airflow"},"version":"2.3.0"}],"cvss":9.8,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.04078,"percentile":0.90629,"score_date":"2026-10-26"},"published_at":"2022-11-22T00:00:00.000Z","modified_at":"2026-10-26T21:30:04.163640168Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-rmf2-pwfq-h75j","fetched_at":"2026-10-26T23:45:56.352924Z","source_modified_at":"2026-10-26T21:11:40Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-40189","fetched_at":"2026-10-26T23:45:56.352924Z","source_modified_at":"2025-04-29T04:25:48.603Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-rmf2-pwfq-h75j","fetched_at":"2026-10-26T23:45:56.352924Z","source_modified_at":"2026-10-26T21:30:04.163640168Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-40189","fetched_at":"2026-10-26T23:45:56.352924Z","source_modified_at":"2026-10-26"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40189","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/apache/airflow/pull/27644","tags":["x_transferred"]},{"source":"CVE List","url":"https://lists.apache.org/thread/yxnfzfw2w9pj5s785k3rlyly4y44sd15","tags":["x_transferred"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-270.yaml","source":"GitHub Advisory Database"},{"url":"https://pypi.org/project/apache-airflow","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-rmf2-pwfq-h75j","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total","assessed_at":"2025-04-29T04:24:47.927458Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-26T21:30:04.163640168Z","content_hash":"3ab108c0a3f37bc8f578b13338478a9650393d9c6104d4d9e83a9993b0070e11"}}
