CVE-2024-25142: Apache airflow Apache Airflow Does Not Return Vulnerability

LOW
Advisory Identifier: GHSA-9xpj-62mm-24h2
CWE-525
Published
Advisory Summary

CVE-2024-25142 is a LOW apache airflow does not return vulnerability (CWE-525: Use of Web Browser Cache Containing Sensitive Information) affecting Apache airflow libraries in the PyPI ecosystem. The issue involves apache airflow does not return the "cache-control" header for dynamic content. Remediation is available by upgrading affected packages to version 2.9.2.

CVE-2024-25142 at a Glance

CVE Identifier CVE-2024-25142
GHSA Identifier GHSA-9xpj-62mm-24h2
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-525: Use of Web Browser Cache Containing Sensitive Information
Affected Product Apache airflow
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2024-25142

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.2
pip install apache-airflow>=2.9.2
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-25142, 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.2), 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-525: Use of Web Browser Cache Containing Sensitive Information, where the web application does not use an appropriate caching policy that specifies the extent to which each web page and associated form fields should be cached. 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

Use of Web Browser Cache Containing Sensitive Information vulnerability in Apache Airflow.  Airflow did not return "Cache-Control" header for dynamic content, which in case of some browsers could result in potentially storing sensitive data in local cache of the browser. This issue affects Apache Airflow: before 2.9.2. Users are recommended to upgrade to version 2.9.2, which fixes the issue.

CVE-2024-25142 Affected Apache airflow Versions

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

References

Frequently Asked Questions

What is CVE-2024-25142?
CVE-2024-25142 is a security vulnerability in Apache airflow involving Apache Airflow does not return the "Cache-Control" header for dynamic content under CWE-525: Use of Web Browser Cache Containing Sensitive Information.
Which Apache airflow versions are affected?
Affected versions include releases prior to 2.9.2 across affected packages: apache-airflow.
What version fixes CVE-2024-25142?
Upgrading to 2.9.2 (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.2. Upgrade your dependency to 2.9.2 or later.
What CWE is associated with CVE-2024-25142?
CVE-2024-25142 is classified under CWE-525: Use of Web Browser Cache Containing Sensitive Information (The web application does not use an appropriate caching policy that specifies the extent to which each web page and associated form fields should be cached.).
How can I check PyPI dependencies for CVE-2024-25142?
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-9xpj-62mm-24h2",
  "modified" : "2025-01-21T17:57:43Z",
  "published" : "2024-06-14T09:31:17Z",
  "aliases" : [ "CVE-2024-25142" ],
  "summary" : "Apache Airflow does not return the \"Cache-Control\" header for dynamic content",
  "details" : "Use of Web Browser Cache Containing Sensitive Information vulnerability in Apache Airflow. \n\nAirflow did not return \"Cache-Control\" header for dynamic content, which in case of some browsers could result in potentially storing sensitive data in local cache of the browser.\n\nThis issue affects Apache Airflow: before 2.9.2.\n\nUsers are recommended to upgrade to version 2.9.2, which fixes the issue.\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-airflow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.9.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25142"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/pull/39550"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/commit/94eb647de692a4d9555b02dce85974da5d4c04e3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/airflow"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2024-195.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/cg1j28lk0fhzthk0of1g7vy7p2n1j7nr"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/06/13/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-525" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-17T21:24:09Z",
    "nvd_published_at" : "2024-06-14T09:15:09Z"
  }
}