Vulnerability · Published Jan 24, 2024 · Assigned by apache
CVE-2023-51702Apache Airflow CNCF Kubernetes provider, Apache Airflow: Kubernetes configuration file saved without encryption in the Metadata and logged as plain text in the Triggerer service
Medium 6.5
In plain English
A medium-severity sensitive data in logs in Apache Airflow from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | apache-airflow | 2.6.1 | GHSA-mg2x-mggj-6955 |
| PyPI | apache-airflow | 2.6.1 | PYSEC-2026-2350 |
| PyPI | apache-airflow-providers-cncf-kubernetes | 7.0.0 | GHSA-mg2x-mggj-6955 |
| PyPI | apache-airflow-providers-cncf-kubernetes | 7.0.0 | PYSEC-2026-1144 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Airflow CNCF Kubernetes provider | 5.2.0 – before 7.0.0 |
| Apache Software Foundation | Apache Airflow | 2.3.0 – before 2.6.1 |
Weakness: CWE-532, CWE-312 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N