CVE-2022-24288 Apache Airflow: RCE in example DAGs
Attackers can execute arbitrary OS commands via unsanitized parameters in example DAGs within the Apache Airflow web UI.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24288?
CVE-2022-24288 is a high-severity command injection vulnerability in Apache Airflow, published on 25 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them susceptible to OS Command Injection from the web UI.
Weakness: CWE-78
Which versions are affected by CVE-2022-24288?
4 open source packages ship an affected version, including apache-airflow and airflow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apache-airflow PyPI | All versions | 2.2.4 |
apache-airflow PyPI | All versions | 2.2.4 |
apache-airflow PyPI | All versions | 2.2.4 |
airflow Bitnami | All versions | 2.2.4 |
Products include Apache Airflow.
How do I fix CVE-2022-24288?
Upgrade apache-airflow to 2.2.4 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-24288 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24288 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in Apache Airflow
- CVE-2020-13927 Apache Airflow's Experimental API Authentication Bypass
- CVE-2020-11978 Apache Airflow Command Injection
- CVE-2026-33264 Apache Airflow: DAG author RCE on webserver via unrestricted import_string() in BaseSerialization.deserialize()
- CVE-2023-25754 Apache Airflow: Privilege escalation using airflow logs
- CVE-2023-22884 Apache Airflow, Apache Airflow MySQL Provider: Arbitrary file read via MySQL provider in Apache Airflow
Sources
Also known as BIT-airflow-2022-24288, GHSA-3v7g-4pg3-7r6j, PYSEC-2022-30.