6.5medium
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
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.49% (higher than 35% of CVEs)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-mg2x-mggj-6955BIT-AIRFLOW-2023-51702PYSEC-2026-1144PYSEC-2026-2350
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
| Product or package | Versions | Reported by |
|---|---|---|
| apache-airflow-providers-cncf-kubernetes | from 5.2.0 before 7.0.0 | CVE List |
| apache-airflow | from 2.3.0 before 2.6.1 | CVE List |
| apache-airflow (PyPI) | from 2.3.0 before 2.6.1 | GitHub Advisory Database, PyPA Advisory Database |
| apache-airflow-providers-cncf-kubernetes (PyPI) | from 5.2.0 before 7.0.0 | GitHub Advisory Database, PyPA Advisory Database |
| apache airflow | from 2.3.0 before 2.6.1 | NVD |
| apache apache-airflow-providers-cncf-kubernetes | from 5.2.0 before 7.0.0 | NVD |
| airflow (Bitnami) | from 2.3.0 before 2.6.1 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
NVD (es)
Desde la versión 5.2.0, cuando se utiliza el modo diferible con la ruta de un archivo de configuración de Kubernetes para la autenticación, el trabajador de Airflow serializa este archivo de configuración como un diccionario y lo envía al activador almacenándolo en metadatos sin ningún cifrado. Además, si se utiliza con una versión de Airflow entre 2.3.0 y 2.6.0, el diccionario de configuración se registrará como texto plano en el servicio activador sin enmascaramiento. Esto permite que cualquier persona con acceso a los metadatos o al registro del activador obtenga el archivo de configuración y lo utilice para acceder al clúster de Kubernetes. Este comportamiento se cambió en la versión 7.0.0, que dejó de serializar el contenido del archivo y comenzó a proporcionar la ruta del archivo para leer el contenido en el activador. Se recomienda a los usuarios actualizar a la versión 7.0.0, que soluciona este problema.
References
| https://github.com/apache/airflow/pull/29498 | fix, issue-tracking, patch, web | |
| https://github.com/apache/airflow/pull/30110 | fix, patch, web | |
| https://github.com/apache/airflow/pull/36492 | fix, issue-tracking, patch, web | |
| https://lists.apache.org/thread/89x3q6lz5pykrkr1fkr04k4rfn9pvnv9 | advisory, mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2024/01/24/3 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-51702 | advisory, web | |
| https://github.com/apache/airflow | package | |
| https://pypi.org/project/apache-airflow-providers-cncf-kubernetes | package | |
| https://github.com/advisories/GHSA-mg2x-mggj-6955 | advisory | |
| https://pypi.org/project/apache-airflow | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-51702 changed 2025-06-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mg2x-mggj-6955 changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2023-51702 changed 2026-07-02 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1144 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-2350 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-AIRFLOW-2023-51702 changed 2026-09-08 | Apache-2.0 |