CVE-2024-32077 Apache Airflow: XSS vulnerability in Task Instance Log/Log Details
An authenticated attacker can inject malicious scripts into task instance logs, potentially leading to code execution or account takeover in Apache Airflow.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-32077?
CVE-2024-32077 is a medium-severity cross-site scripting vulnerability in Apache Airflow, published on 14 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Apache Airflow version 2.9.0 has a vulnerability that allows an authenticated attacker to inject malicious data into the task instance logs. Users are recommended to upgrade to version 2.9.1, which fixes this issue.
Weakness: CWE-79
Which versions are affected by CVE-2024-32077?
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.9.0-NA | None |
apache-airflow PyPI | From 2.9.0 | 2.9.1 |
apache-airflow PyPI | From 2.9.0 | 2.9.1 |
airflow Bitnami | From 2.9.0 | 2.9.1 |
Products include Apache Airflow.
How do I fix CVE-2024-32077?
Upgrade apache-airflow to 2.9.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-32077 being exploited?
There is no known exploitation of CVE-2024-32077 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-32077, GHSA-52gm-qmg3-r4qp, PYSEC-2024-264.