CVE-2024-45498 Apache Airflow: Command Injection in an example DAG

High 8.8 Published Updated

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.

PackageAffectedFixed in
apache-airflow PyPIAll versions to 2.10.0-NANone
apache-airflow PyPIFrom 2.10.02.10.1
apache-airflow PyPIFrom 2.10.02.10.1
airflow BitnamiFrom 2.10.02.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.

All Apache Airflow vulnerabilities

Sources

Also known as BIT-airflow-2024-45498, GHSA-c392-whpc-vfpr, PYSEC-2024-266.

Is CVE-2024-45498 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free