CVE-2024-29735: Apache airflow Apache Airflow Improper Preservation Of Vulnerability

MODERATE
Advisory Identifier: GHSA-cff3-5qrp-hqx7
CVSS 5.3
CWE-281
Published
Advisory Summary

CVE-2024-29735 is a MODERATE (CVSS 5.3) apache airflow improper preservation of vulnerability (CWE-281: Improper Preservation of Permissions) affecting Apache airflow libraries in the PyPI ecosystem. The issue involves apache airflow improper preservation of permissions vulnerability. Remediation is available by upgrading affected packages to version 2.8.4.

CVE-2024-29735 at a Glance

CVE Identifier CVE-2024-29735
GHSA Identifier GHSA-cff3-5qrp-hqx7
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-281: Improper Preservation of Permissions
Affected Product Apache airflow
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-29735

To remediate this vulnerability, upgrade all affected Apache airflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

apache-airflow fixed: 2.8.4
pip install apache-airflow>=2.8.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show apache-airflow

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-29735, inspect your installed packages using pip:

pip show apache-airflow

Analyze the terminal output to locate any version of Apache airflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.4), your application is affected.

Note: The pip show apache-airflow command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-281: Improper Preservation of Permissions, where the product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended. In Apache airflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2024-29735 Affected Apache airflow Versions

1 component(s)
Fixed Versions:
2.8.4
Product / Package Ecosystem Affected Versions Fixed Version
apache-airflow
PyPI
≥ 2.8.2
< 2.8.4
2.8.4

References

Frequently Asked Questions

What is CVE-2024-29735?
CVE-2024-29735 is a security vulnerability in Apache airflow involving Apache Airflow Improper Preservation of Permissions vulnerability under CWE-281: Improper Preservation of Permissions.
Which Apache airflow versions are affected?
Affected versions include releases prior to 2.8.4 across affected packages: apache-airflow.
What version fixes CVE-2024-29735?
Upgrading to 2.8.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-airflow affected?
Yes, apache-airflow is affected in releases prior to 2.8.4. Upgrade your dependency to 2.8.4 or later.
What is the CVSS score of CVE-2024-29735?
CVE-2024-29735 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2024-29735?
CVE-2024-29735 is classified under CWE-281: Improper Preservation of Permissions (The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.).
How can I check PyPI dependencies for CVE-2024-29735?
Run the dependency tree command: 'pip show apache-airflow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cff3-5qrp-hqx7",
  "modified" : "2025-02-13T19:04:38Z",
  "published" : "2024-03-26T18:32:06Z",
  "aliases" : [ "CVE-2024-29735" ],
  "summary" : "Apache Airflow Improper Preservation of Permissions vulnerability",
  "details" : "Improper Preservation of Permissions vulnerability in Apache Airflow. This issue affects Apache Airflow from 2.8.2 through 2.8.3.\n\nAirflow'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.\n\nIf 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.\n\nThis 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.\n\nYou 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.\n\nAlso you should not be affected if your umask is 002 (group write enabled) - this is the default on many linux systems.\n\nRecommendation for users using Airflow outside of the containers:\n\n  *  if you are using root to run Airflow, change your Airflow user to use non-root\n  *  upgrade Apache Airflow to 2.8.4 or above\n  *  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).\n  *  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",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-airflow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.2"
      }, {
        "fixed" : "2.8.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29735"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/issues/37200"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/pull/37310"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/commit/aae4a83cdfb3be4afeefd88a7bfa3c4d8d184958"
  }, {
    "type" : "WEB",
    "url" : "https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#file-task-handler-new-folder-permissions"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/airflow"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/8khb1rtbznh100o325fb8xw5wjvtv536"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/03/26/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-281" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-27T02:02:03Z",
    "nvd_published_at" : "2024-03-26T17:15:47Z"
  }
}