CVE-2023-51702
JSON

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 packageVersionsReported by
apache-airflow-providers-cncf-kubernetesfrom 5.2.0 before 7.0.0CVE List
apache-airflowfrom 2.3.0 before 2.6.1CVE List
apache-airflow (PyPI)from 2.3.0 before 2.6.1GitHub Advisory Database, PyPA Advisory Database
apache-airflow-providers-cncf-kubernetes (PyPI)from 5.2.0 before 7.0.0GitHub Advisory Database, PyPA Advisory Database
apache airflowfrom 2.3.0 before 2.6.1NVD
apache apache-airflow-providers-cncf-kubernetesfrom 5.2.0 before 7.0.0NVD
airflow (Bitnami)from 2.3.0 before 2.6.1Bitnami Vulnerability Database

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-312CWE-532

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2023-51702 changed 2025-06-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-mg2x-mggj-6955 changed 2026-07-13CC-BY-4.0
NVDCVE-2023-51702 changed 2026-07-02Public domain
PyPA Advisory DatabasePYSEC-2026-1144 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-2350 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-AIRFLOW-2023-51702 changed 2026-09-08Apache-2.0