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

Source: https://junglewise.ai/threats/cve-2024-45498-apache-airflow-command-execution-in-example-dags  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-09-07. Updated: 2026-06-05  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/apache-airflow). Vendors: [PyPI](https://junglewise.ai/threats/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

  ```sh
  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

- [https://api.github.com/users/exolightor](https://api.github.com/users/exolightor)
- [https://github.com/exolightor](https://github.com/exolightor)
- [https://api.github.com/users/exolightor/gists%7B/gist_id%7D](https://api.github.com/users/exolightor/gists%7B/gist_id%7D)
- [https://api.github.com/users/exolightor/repos](https://api.github.com/users/exolightor/repos)
- [https://avatars.githubusercontent.com/u/86409447?v=4](https://avatars.githubusercontent.com/u/86409447?v=4)
- [https://api.github.com/users/exolightor/events%7B/privacy%7D](https://api.github.com/users/exolightor/events%7B/privacy%7D)

## Related threats

- [Apache Airflow Core API logout incomplete token revocation](https://junglewise.ai/threats/cve-2026-86473-apache-airflow-the-core-api-logout-endpoint-revokes-only-a)
- [Apache Airflow authentication bypass via session cookie precedence](https://junglewise.ai/threats/cve-2026-82355-when-a-request-to-the-airflow-core-api-carries-both-a-session)
- [Apache Airflow information disclosure in /assets/events API](https://junglewise.ai/threats/cve-2026-75158-apache-airflow-s-assets-events-api-returned-asset-events-for)
- [Apache Airflow authorization bypass in asset materialization and XCom endpoints](https://junglewise.ai/threats/cve-2026-68971-apache-airflow-authorization-bypass-in-asset-materialization-and)
- [Apache Airflow Task SDK variable masking bypass for list-shaped values](https://junglewise.ai/threats/cve-2026-68970-apache-airflow-task-sdk-variable-masking-bypass-for-list-shaped)
