CVE-2023-51702: 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
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/apache-airflow-providers-cncf-kubernetesto a version that resolves this vulnerability.Fixed in 7.0.0 - Upgrade
Upgrade
pip/apache-airflowto a version that resolves this vulnerability.Fixed in 2.6.1 - Upgrade
Upgrade
Apache Airflow (CNCF Kubernetes provider)to a version that resolves this vulnerability.Fixed in 7.0.0 - Operational
If your Airflow metadata and Triggerer logs may have exposed Kubernetes authentication configuration contents (CVE-2023-51702), rotate any credentials/secrets contained in that configuration and remove/limit access to the affected stored metadata/logs.
Event History
Frequently Asked Questions
What is the severity of CVE-2023-51702?
The severity of CVE-2023-51702 is considered high due to the potential exposure of sensitive configuration information.
How do I fix CVE-2023-51702?
To fix CVE-2023-51702, upgrade the apache-airflow-providers-cncf-kubernetes package to version 7.0.0 or later and the apache-airflow package to version 2.6.1 or later.
What does CVE-2023-51702 affect?
CVE-2023-51702 affects Apache Airflow versions between 2.3.0 and 2.6.1 and apache-airflow-providers-cncf-kubernetes versions between 5.2.0 and 7.0.0.
What is the impact of CVE-2023-51702?
The impact of CVE-2023-51702 includes the potential unauthorized access to sensitive Kubernetes configuration data due to lack of encryption.
Is CVE-2023-51702 a remote code execution vulnerability?
No, CVE-2023-51702 is not classified as a remote code execution vulnerability but rather as a confidential information exposure vulnerability.