CVE-2024-45498 Apache Airflow: Command Injection in an example DAG
Authenticated attackers can execute arbitrary commands via a vulnerable example DAG in Apache Airflow if example DAGs are exposed.
- 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-2024-45498?
CVE-2024-45498 is a high-severity command injection vulnerability in Apache Airflow, published on 7 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Example DAG: example_inlet_event_extra.py shipped with Apache Airflow version 2.10.0 has a vulnerability that allows an authenticated attacker with only DAG trigger permission to execute arbitrary commands. If you used that example as the base of your DAGs - please review if you have not copied the dangerous example; see https://github.com/apache/airflow/pull/41873 for more information. We recommend against exposing the example DAGs in your deployment. If you must expose the example DAGs, upgrade Airflow to version 2.10.1 or later.
Weakness: CWE-116
Which versions are affected by CVE-2024-45498?
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 to 2.10.0-NA | None |
apache-airflow PyPI | From 2.10.0 | 2.10.1 |
apache-airflow PyPI | From 2.10.0 | 2.10.1 |
airflow Bitnami | From 2.10.0 | 2.10.1 |
Products include Apache Airflow.
How do I fix CVE-2024-45498?
Upgrade apache-airflow to 2.10.1 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-45498 being exploited?
There is no known exploitation of CVE-2024-45498 in the wild and no public exploit code.
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-2024-45498, GHSA-c392-whpc-vfpr, PYSEC-2024-266.