CVE-2022-40189
Apache Airflow vulnerability analysis and mitigation

Overview

CVE-2022-40189 is a command injection vulnerability affecting Apache Airflow Pig Provider and Apache Airflow. The vulnerability allows an attacker to control commands executed in the task execution context without requiring write access to DAG files. This vulnerability impacts Pig Provider versions prior to 4.0.0 and any Apache Airflow versions prior to 2.3.0 when Pig Provider is installed (NVD, CVE Mitre).

Technical details

The vulnerability is classified as an Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'). It specifically affects the Pig Provider component when installed with Apache Airflow, allowing command execution in the task execution context (NVD).

Impact

The vulnerability enables attackers to execute arbitrary commands within the task execution context of Apache Airflow, potentially leading to unauthorized system access and command execution (NVD).

Mitigation and workarounds

Users are advised to upgrade to Pig Provider version 4.0.0 or later. For Airflow installations version 2.3.0 or higher, manual installation of Pig Provider version 4.0.0 is required to address the vulnerability. Note that Pig Provider 4.0.0 can only be installed on Airflow 2.3.0+ (NVD).

Additional resources


SourceThis report was generated using AI

Related Apache Airflow vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-45784HIGH7.5
  • Apache AirflowApache Airflow
  • apache-airflow
NoYesNov 15, 2024
CVE-2025-54831MEDIUM6.5
  • Apache AirflowApache Airflow
  • airflow
NoYesSep 26, 2025
CVE-2025-62402MEDIUM5.4
  • Apache AirflowApache Airflow
  • airflow-3
NoYesOct 30, 2025
CVE-2025-62503MEDIUM4.6
  • Apache AirflowApache Airflow
  • airflow-3
NoYesOct 30, 2025
CVE-2025-54941MEDIUM4.6
  • Apache AirflowApache Airflow
  • airflow
NoYesOct 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management