CVE-2024-45498: Apache Airflow command execution in example DAGs

CVE-2024-45498 · Severity: high · CVSS 8.8 · Published 2024-09-07

Apache Airflow, a platform used to automate and schedule complex data workflows, contains a security flaw in one of its example configuration files. An authorized user with permission to trigger workflows could exploit this flaw to run unauthorized commands on the server. This could lead to a full system compromise, data theft, or disruption of business operations.

Technologies: apache-airflow (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-45498 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-45498 being exploited in the wild.
How severe is CVE-2024-45498?
High severity, with a CVSS score of 8.8, published 7 September 2024.
Which products and versions are affected?
apache-airflow (PyPI) = 2.10.0, ECOSYSTEM:introduced=0,last_affected=2.10.0-NA, ECOSYSTEM:introduced=2.10.0,fixed=2.10.1.
Is there a fix for CVE-2024-45498?
Yes. apache-airflow (PyPI): upgrade to 2.10.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-45498 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2024-45498?
Check whether you run apache-airflow (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • apache-airflow (PyPI): upgrade to 2.10.1 or later
    pip install "apache-airflow>=2.10.1"

Technical details

A vulnerability exists in the 'example_inlet_event_extra.py' DAG file shipped with Apache Airflow 2.10.0 due to improper encoding or escaping of output (CWE-116). An authenticated attacker with 'DAG trigger' permissions can exploit this to achieve arbitrary command execution on the Airflow worker or scheduler. The issue stems from how the example DAG handles inputs, allowing for command injection. Users who used this example as a template for their own production DAGs are also at risk. The vulnerability is remediated in version 2.10.1, and it is recommended to disable example DAGs in production environments.

Affected products

  • Apache Airflow 2.10.0

Identifiers

  • CVE-2024-45498
  • GHSA-c392-whpc-vfpr
  • PYSEC-2024-266

Timeline

  • 2024-09-07: disclosed
  • 2024-09-07: advisory
  • 2024-09-07: patched: Released in version 2.10.1

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.