CVE-2022-24288 Apache Airflow: RCE in example DAGs

High 8.8 Published Updated

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.

PackageAffectedFixed in
apache-airflow PyPIAll versions2.2.4
apache-airflow PyPIAll versions2.2.4
apache-airflow PyPIAll versions2.2.4
airflow BitnamiAll versions2.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.

All Apache Airflow vulnerabilities

Sources

Also known as BIT-airflow-2022-24288, GHSA-3v7g-4pg3-7r6j, PYSEC-2022-30.

Is CVE-2022-24288 in your software?

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

Check your SBOMs for free