{"id":"CVE-2022-40189","aliases":["CVE-2022-40189","GHSA-rmf2-pwfq-h75j","BIT-AIRFLOW-2022-40189","PYSEC-2026-270"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Airflow Pig Provider RCE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Neutralización inadecuada de elementos especiales utilizados en una vulnerabilidad de comando del sistema operativo ('inyección de comando del sistema operativo') en Apache Airflow Pig Provider, Apache Airflow permite a un atacante controlar los comandos ejecutados en el contexto de ejecución de la tarea, sin acceso de escritura a los archivos DAG. Este problema afecta a las versiones de Pig Provider anteriores a la 4.0.0. También afecta cualquier versión de Apache Airflow anterior a la 2.3.0 en caso de que Pig Provider esté instalado (Pig Provider 4.0.0 solo se puede instalar para Airflow 2.3.0+). Tenga en cuenta que debe instalar manualmente Pig Provider versión 4.0.0 para eliminar la vulnerabilidad además de la versión Airflow 2.3.0+.","source":"nvd"}],"published":"2022-11-22T00:00:00.000Z","modified":"2026-11-27T15:30:02.386Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.0.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Airflow Pig Provider","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"2.3.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Airflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.0"}],"ecosystem":"PyPI","package":"apache-airflow","purl":"pkg:pypi/apache-airflow","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.0"}],"vendor":"apache","product":"airflow","cpe":"cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"4.0.0"}],"vendor":"apache","product":"apache-airflow-providers-apache-pig","cpe":"cpe:2.3:a:apache:apache-airflow-providers-apache-pig:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.0"}],"ecosystem":"PyPI","package":"apache-airflow","purl":"pkg:pypi/apache-airflow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.3.0"}],"ecosystem":"Bitnami","package":"airflow","purl":"pkg:bitnami/airflow","source":"bitnami"}],"references":[{"url":"https://github.com/apache/airflow/pull/27644","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.apache.org/thread/yxnfzfw2w9pj5s785k3rlyly4y44sd15","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40189","tags":["advisory","web"],"sources":["ghsa","pysec","bitnami"]},{"url":"https://github.com/apache/airflow","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-270.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/apache-airflow","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-rmf2-pwfq-h75j","tags":["advisory"],"sources":["pysec"]}],"credits":["Apache Airflow PMC wants to thank id_No2015429 of 3H Security Team for reporting the issue."],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-04-29T04:24:47.927Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-40189","url":"https://www.cve.org/CVERecord?id=CVE-2022-40189","licence":"CVE Terms of Use","modified":"2026-11-27T12:56:24.266Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rmf2-pwfq-h75j","url":"https://github.com/advisories/GHSA-rmf2-pwfq-h75j","licence":"CC-BY-4.0","modified":"2026-10-26T21:30:04.163Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-40189","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40189","licence":"Public domain","modified":"2026-11-27T13:17:18.673Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-270","url":"https://osv.dev/vulnerability/PYSEC-2026-270","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:49.250Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-AIRFLOW-2022-40189","url":"https://osv.dev/vulnerability/BIT-AIRFLOW-2022-40189","licence":"Apache-2.0","modified":"2026-11-27T15:30:02.386Z"}],"updatedAt":"2026-11-27T15:37:24.929Z","epss":{"score":0.04229,"percentile":0.91249,"date":"2026-12-02T12:00:21.000Z"}}