CVE-2022-40189

Executive Summary

This vulnerability is an OS command injection flaw in the Apache Airflow Pig Provider that allows an attacker to execute arbitrary commands in the task execution context without needing write access to DAG files. It affects Pig Provider versions earlier than 4.0.0 and any Airflow installation prior to 2.3.0 when the Pig Provider is installed. An attacker could leverage this to run arbitrary code on the host, potentially compromising the entire Airflow deployment. The fix is to upgrade the Pig Provider to version 4.0.0 and ensure Airflow is at least 2.3.0, installing the newer provider manually if necessary.


Authoritative CVE Metadata

  • CVSS Base Score: 9.8 (CRITICAL)
  • Status: Modified
  • Last Modified: 27-11-26

Original Description

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.