GHSA-mg2x-mggj-6955

Suggest an improvement
Source
https://github.com/advisories/GHSA-mg2x-mggj-6955
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-mg2x-mggj-6955/GHSA-mg2x-mggj-6955.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-mg2x-mggj-6955
Aliases
Published
2024-01-24T15:30:30Z
Modified
2024-01-31T15:01:14.397947Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Apache Airflow CNCF Kubernetes provider, Apache Airflow: Kubernetes configuration file saved without encryption in the Metadata and logged as plain text in the Triggerer service
Details

Since version 5.2.0, when using deferrable mode with the path of a Kubernetes configuration file for authentication, the Airflow worker serializes this configuration file as a dictionary and sends it to the triggerer by storing it in metadata without any encryption. Additionally, if used with an Airflow version between 2.3.0 and 2.6.0, the configuration dictionary will be logged as plain text in the triggerer service without masking. This allows anyone with access to the metadata or triggerer log to obtain the configuration file and use it to access the Kubernetes cluster.

This behavior was changed in version 7.0.0, which stopped serializing the file contents and started providing the file path instead to read the contents into the trigger. Users are recommended to upgrade to version 7.0.0, which fixes this issue.

Database specific
{
    "nvd_published_at": "2024-01-24T13:15:08Z",
    "cwe_ids": [
        "CWE-312"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-01-24T21:13:06Z"
}
References

Affected packages

PyPI / apache-airflow

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.3.0
Fixed
2.6.1

Affected versions

2.*

2.3.0
2.3.1rc1
2.3.1
2.3.2rc1
2.3.2rc2
2.3.2
2.3.3rc1
2.3.3rc2
2.3.3rc3
2.3.3
2.3.4rc1
2.3.4
2.4.0b1
2.4.0rc1
2.4.0
2.4.1rc1
2.4.1
2.4.2rc1
2.4.2
2.4.3rc1
2.4.3
2.5.0rc1
2.5.0rc2
2.5.0rc3
2.5.0
2.5.1rc1
2.5.1rc2
2.5.1
2.5.2rc1
2.5.2rc2
2.5.2
2.5.3rc1
2.5.3rc2
2.5.3
2.6.0b1
2.6.0rc1
2.6.0rc2
2.6.0rc3
2.6.0rc4
2.6.0rc5
2.6.0
2.6.1rc1
2.6.1rc2
2.6.1rc3

PyPI / apache-airflow-providers-cncf-kubernetes

Package

Name
apache-airflow-providers-cncf-kubernetes
View open source insights on deps.dev
Purl
pkg:pypi/apache-airflow-providers-cncf-kubernetes

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.2.0
Fixed
7.0.0

Affected versions

5.*

5.2.0
5.2.1rc1
5.2.1
5.2.2rc1
5.2.2
5.3.0rc1
5.3.0

6.*

6.0.0rc1
6.0.0
6.1.0rc1
6.1.0
6.2.0rc1

7.*

7.0.0rc2