CVE-2023-41267: Apache airflow providers apache hdfs Apache HDFS Provider Error Message Vulnerability

HIGH
Advisory Identifier: GHSA-5hj9-m76g-xrc8
CVSS 7.8
CWE-829
Published
Advisory Summary

CVE-2023-41267 is a HIGH (CVSS 7.8) apache hdfs provider error message vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Apache airflow providers apache hdfs libraries in the PyPI ecosystem. The issue involves apache hdfs provider error message suggested. Remediation is available by upgrading affected packages to version 4.1.1.

CVE-2023-41267 at a Glance

CVE Identifier CVE-2023-41267
GHSA Identifier GHSA-5hj9-m76g-xrc8
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Apache airflow providers apache hdfs
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.8

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

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

How to Fix CVE-2023-41267

To remediate this vulnerability, upgrade all affected Apache airflow providers apache hdfs 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-providers-apache-hdfs fixed: 4.1.1
pip install apache-airflow-providers-apache-hdfs>=4.1.1
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-providers-apache-hdfs

How to Check if You Are Affected

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

pip show apache-airflow-providers-apache-hdfs

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Apache airflow providers apache hdfs, 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

In the Apache Airflow HDFS Provider, versions prior to 4.1.1, a documentation info pointed users to an install incorrect pip package. As this package name was unclaimed, in theory, an attacker could claim this package and provide code that would be executed when this package was installed. The Airflow team has since taken ownership of the package (neutralizing the risk), and fixed the doc strings in version 4.1.1

CVE-2023-41267 Affected Apache airflow providers apache hdfs Versions

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

References

Frequently Asked Questions

What is CVE-2023-41267?
CVE-2023-41267 is a security vulnerability in Apache airflow providers apache hdfs involving Apache HDFS Provider error message suggested under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Apache airflow providers apache hdfs versions are affected?
Affected versions include releases prior to 4.1.1 across affected packages: apache-airflow-providers-apache-hdfs.
What version fixes CVE-2023-41267?
Upgrading to 4.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-airflow-providers-apache-hdfs affected?
Yes, apache-airflow-providers-apache-hdfs is affected in releases prior to 4.1.1. Upgrade your dependency to 4.1.1 or later.
What is the CVSS score of CVE-2023-41267?
CVE-2023-41267 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-41267?
CVE-2023-41267 is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check PyPI dependencies for CVE-2023-41267?
Run the dependency tree command: 'pip show apache-airflow-providers-apache-hdfs'. 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-5hj9-m76g-xrc8",
  "modified" : "2025-02-13T19:13:06Z",
  "published" : "2023-09-14T09:30:28Z",
  "aliases" : [ "CVE-2023-41267" ],
  "summary" : "Apache HDFS Provider error message suggested",
  "details" : "In the Apache Airflow HDFS Provider, versions prior to 4.1.1, a documentation info pointed users to an install incorrect pip package. As this package name was unclaimed, in theory, an attacker could claim this package and provide code that would be executed when this package was installed. The Airflow team has since taken ownership of the package (neutralizing the risk), and fixed the doc strings in version 4.1.1",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-airflow-providers-apache-hdfs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-41267"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/pull/33813"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/airflow"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/ggthr5pn42bn6wcr25hxnykjzh4ntw7z"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2023/09/14/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-829" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-01T21:29:25Z",
    "nvd_published_at" : "2023-09-14T08:15:07Z"
  }
}