PyPI: apache-airflow
CVE-2024-45034
Safety vulnerability ID: SFTY-20240907-04870
Safety legacy ID: pyup.io-73188
Apache Airflow affected versions contain a potential security vulnerability in the initialization process. The DAGS_FOLDER was added to sys.path before importing local settings, potentially allowing execution of malicious code if an attacker had write access to the DAGS_FOLDER. The fix reorganizes the initialization sequence, ensuring DAGS_FOLDER is added to sys.path only after local settings are imported. This change mitigates the risk of unintended code execution during startup. Users are strongly advised to update to the latest version incorporating this fix, especially in environments where DAGS_FOLDER access is not strictly controlled.
Overview
Apache Airflow vulnerable to Execution with Unnecessary Privileges
Advisory
Apache Airflow affected versions contain a potential security vulnerability in the initialization process. The DAGS_FOLDER was added to sys.path before importing local settings, potentially allowing execution of malicious code if an attacker had write access to the DAGS_FOLDER. The fix reorganizes the initialization sequence, ensuring DAGS_FOLDER is added to sys.path only after local settings are imported. This change mitigates the risk of unintended code execution during startup. Users are strongly advised to update to the latest version incorporating this fix, especially in environments where DAGS_FOLDER access is not strictly controlled.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240907-04870/CVE-2024-45034
- https://nvd.nist.gov/vuln/detail/CVE-2024-45034
- https://github.com/apache/airflow/pull/41672
- https://lists.apache.org/thread/b4fcw33vh60yfg9990n5vmc7sy2dcgjx
- https://github.com/apache/airflow/commit/03e01e76d2203d37aa645096df195b4328665f6d
- https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-212.yaml
- http://www.openwall.com/lists/oss-security/2024/09/06/3
- https://github.com/advisories/GHSA-92xg-gmrq-5c3w
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
