CVE-2024-28746: Apache Airflow Ignored Airflow Permission Vulnerability

MODERATE
Advisory Identifier: GHSA-h574-6646-vfxx
CWE-281
Published
Advisory Summary

CVE-2024-28746 is a MODERATE ignored airflow permission vulnerability (CWE-281: Improper Preservation of Permissions) affecting Apache Airflow libraries in the PyPI ecosystem. The issue involves ignored airflow permission. Remediation is available by upgrading affected packages to version 2.8.3rc1.

CVE-2024-28746 at a Glance

CVE Identifier CVE-2024-28746
GHSA Identifier GHSA-h574-6646-vfxx
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-281: Improper Preservation of Permissions
Affected Product Apache Airflow
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2024-28746

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.3rc1
pip install apache-airflow>=2.8.3rc1
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-28746, 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.3rc1), 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

Apache Airflow, versions 2.8.0 through 2.8.2, has a vulnerability that allows an authenticated user with limited permissions to access resources such as variables, connections, etc from the UI which they do not have permission to access.  Users of Apache Airflow are recommended to upgrade to version 2.8.3 or newer to mitigate the risk associated with this vulnerability

CVE-2024-28746 Affected Apache Airflow Versions

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

References

Frequently Asked Questions

What is CVE-2024-28746?
CVE-2024-28746 is a security vulnerability in Apache Airflow involving Ignored Airflow Permission under CWE-281: Improper Preservation of Permissions.
Which Apache Airflow versions are affected?
Affected versions include releases prior to 2.8.3rc1 across affected packages: apache-airflow.
What version fixes CVE-2024-28746?
Upgrading to 2.8.3rc1 (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.3rc1. Upgrade your dependency to 2.8.3rc1 or later.
What CWE is associated with CVE-2024-28746?
CVE-2024-28746 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-28746?
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-h574-6646-vfxx",
  "modified" : "2024-05-02T19:01:54Z",
  "published" : "2024-03-14T09:31:05Z",
  "aliases" : [ "CVE-2024-28746" ],
  "summary" : "Apache Airflow: Ignored Airflow Permission",
  "details" : "Apache Airflow, versions 2.8.0 through 2.8.2, has a vulnerability that allows an authenticated user with limited permissions to access resources such as variables, connections, etc from the UI which they do not have permission to access. \n\nUsers of Apache Airflow are recommended to upgrade to version 2.8.3 or newer to mitigate the risk associated with this vulnerability\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-airflow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.8.0"
      }, {
        "fixed" : "2.8.3rc1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-28746"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/pull/37881"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/commit/89e7f3e7bdf2126bbbcd959dc10d65ef92773cca"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/airflow"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-46.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/b4pffc7w7do6qgk4jjbyxvdz5odrvny7"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/03/13/5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-281" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-15T14:19:23Z",
    "nvd_published_at" : "2024-03-14T09:15:47Z"
  }
}