Apache Airflow Improper Preservation of Permissions vulnerability
Medium5.3CVE-2024-29735 · Published Mar 26, 2024 · updated Jul 7, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| apache-airflow PyPI | >= 2.8.2, < 2.8.4 | 2.8.4 |
Details and references
Improper Preservation of Permissions vulnerability in Apache Airflow. This issue affects Apache Airflow from 2.8.2 through 2.8.3. Airflow's local file task handler in Airflow incorrectly set permissions for all parent folders of log folder, in default configuration adding write access to Unix group of the folders. In the case Airflow is run with the root user (not recommended) it added group write permission to all folders up to the root of the filesystem. If your log files are stored in the home directory, these permission changes might impact your ability to run SSH operations after your home directory becomes group-writeable. This issue does not affect users who use or extend Airflow using Official Airflow Docker reference images ( https://hub.docker.com/r/apache/airflow/ ) - those images require to have group write permission set anyway. You are affected only if you install Airflow using local installation / virtualenv or other Docker images, but the issue has no impact if docker containers are used as intended, i.e. where Airflow components do not share containers with other applications and users. Also you should not be affected if your umask is 002 (group write enabled) - this is the default on many linux systems. Recommendation for users using Airflow outside of the containers: * if you are using root to run Airflow, change your Airflow user to use non-root * upgrade Apache Airflow to 2.8.4 or above * If you prefer not to upgrade, you can change the https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#file-task-handler-new-folder-permissions to 0o755 (original value 0o775). * if you already ran Airflow tasks before and your default umask is 022 (group write disabled) you should stop Airflow components, check permissions of AIRFLOW_HOME/logs in all your components and all parent directories of this directory and remove group write access for all the parent directories
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-281
- Also known as
- BIT-airflow-2024-29735, CVE-2024-29735, PYSEC-2026-1132
- nvd.nist.gov/vuln/detail/CVE-2024-29735
- github.com/apache/airflow/issues/37200
- github.com/apache/airflow/pull/37310
- github.com/apache/airflow/commit/aae4a83cdfb3be4afeefd88a7bfa3c4d8d184958
- airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#file-task-handler-new-folder-permissions
- github.com/apache/airflow
- lists.apache.org/thread/8khb1rtbznh100o325fb8xw5wjvtv536
- www.openwall.com/lists/oss-security/2024/03/26/2
More Apache Airflow advisories
All Apache Airflow| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Mar 142024 | Apache Airflow: Ignored Airflow Permission CVE-2024-28746Mediumfixed in 2.8.3rc1 | Medium | 2.8.3rc1 |
| Apr 182024 | Apache Airflow: Sensitive configuration for providers displayed when "non-sensitive-only" config used CVE-2024-31869Medium4.3fixed in 2.9.0 | Medium4.3 | 2.9.0 |
| Mar 12024 | Apache Airflow: Incorrect Default Permissions in audit logs for Ops and Viewers users CVE-2024-26280Medium4.7fixed in 2.8.2 | Medium4.7 | 2.8.2 |
| Feb 292024 | Apache Airflow: DAG Code and Import Error Permissions Ignored CVE-2024-27906Mediumfixed in 2.8.2 | Medium | 2.8.2 |
| May 142024 | Apache Airflow: XSS vulnerability in Task Instance Log/Log Details CVE-2024-32077Medium5.4fixed in 2.9.1 | Medium5.4 | 2.9.1 |
| Jan 242024 | Apache Airflow: pickle deserialization vulnerability in XComs CVE-2023-50943High7.5fixed in 2.8.1rc1 | High7.5 | 2.8.1rc1 |