CVE-2024-31869: Apache Airflow Sensitive Configuration For Providers Displayed Vulnerability

MODERATE
Advisory Identifier: GHSA-2522-mrjc-m688
CVSS 4.3
CWE-200
Published
Advisory Summary

CVE-2024-31869 is a MODERATE (CVSS 4.3) sensitive configuration for providers displayed vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Apache Airflow libraries in the PyPI ecosystem. The issue involves sensitive configuration for providers displayed when "non-sensitive-only" config used. Remediation is available by upgrading affected packages to version 2.9.0.

CVE-2024-31869 at a Glance

CVE Identifier CVE-2024-31869
GHSA Identifier GHSA-2522-mrjc-m688
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Apache Airflow
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2024-31869

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.9.0
pip install apache-airflow>=2.9.0
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-31869, 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.9.0), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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

Airflow versions 2.7.0 through 2.8.4 have a vulnerability that allows an authenticated user to see sensitive provider configuration via the "configuration" UI page when "non-sensitive-only" was set as "webserver.expose_config" configuration (The celery provider is the only community provider currently that has sensitive configurations). You should migrate to Airflow 2.9 or change your "expose_config" configuration to False as a workaround. This is similar, but different to CVE-2023-46288 https://github.com/advisories/GHSA-9qqg-mh7c-chfq which concerned API, not UI configuration page.

CVE-2024-31869 Affected Apache Airflow Versions

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

References

Frequently Asked Questions

What is CVE-2024-31869?
CVE-2024-31869 is a security vulnerability in Apache Airflow involving Sensitive configuration for providers displayed when "non-sensitive-only" config used under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Apache Airflow versions are affected?
Affected versions include releases prior to 2.9.0 across affected packages: apache-airflow.
What version fixes CVE-2024-31869?
Upgrading to 2.9.0 (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.9.0. Upgrade your dependency to 2.9.0 or later.
What is the CVSS score of CVE-2024-31869?
CVE-2024-31869 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-31869?
CVE-2024-31869 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2024-31869?
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-2522-mrjc-m688",
  "modified" : "2025-02-11T19:03:13Z",
  "published" : "2024-04-18T09:30:44Z",
  "aliases" : [ "CVE-2024-31869" ],
  "summary" : "Apache Airflow: Sensitive configuration for providers displayed when \"non-sensitive-only\" config used",
  "details" : "Airflow versions 2.7.0 through 2.8.4 have a vulnerability that allows an authenticated user to see sensitive provider configuration via the \"configuration\" UI page when \"non-sensitive-only\" was set as \"webserver.expose_config\" configuration (The celery provider is the only community provider currently that has sensitive configurations). You should migrate to Airflow 2.9 or change your \"expose_config\" configuration to False as a workaround. This is similar, but different to  CVE-2023-46288 https://github.com/advisories/GHSA-9qqg-mh7c-chfq  which concerned API, not UI configuration page.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-airflow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-31869"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/pull/38795"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/commit/042c2acaed7c01933d37c2f8434640ce140a4b27"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/airflow"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/pz6vg7wcjk901rmsgt86h76g6kfcgtk3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/04/17/10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-18T16:57:45Z",
    "nvd_published_at" : "2024-04-18T08:15:38Z"
  }
}