Skip to content
OpenAdvisories
High · 8.8 Scanner template Public exploit CVE-2022-40127 BIT-airflow-2022-40127EUVD-2022-0017GHSA-6pw3-8h9w-32gcPYSEC-2022-42982

Apache Airflow <2.4.0 has an RCE in a bash example

Published Nov 14, 2022 · Updated Apr 30, 2025 · Assigned by apache

Description

A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arbitrary commands via manually provided run_id parameter. This issue affects Apache Airflow Apache Airflow versions prior to 2.4.0.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Airflow Apache Airflow – < 2.4.0 2.4.0

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI apache-airflow < 2.4.0 2.4.0 GHSA-6pw3-8h9w-32gc

References