p PatchFirst

CVE-2023-51702

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 6.5 · Medium · EPSS 0.4% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • apache airflow cncf kubernetes provider

    Versions
    • ≥ 5.2.0, < 7.0.0: Affected (semver)

    Update to 7.0.0

  • apache airflow

    Versions
    • ≥ 2.3.0, < 2.6.1: Affected (semver)

    Update to 2.6.1

  • apache-airflow PyPI

    Versions
    • 2.3.0
    • 2.3.1
    • 2.3.1rc1
    • 2.3.2
    • 2.3.2rc1
    • 2.3.2rc2
    • 2.3.3
    • 2.3.3rc1
    • 2.3.3rc2
    • 2.3.3rc3
    • 2.3.4
    • 2.3.4rc1
    • 2.4.0
    • 2.4.0b1
    • 2.4.0rc1
    • 2.4.1
    • 2.4.1rc1
    • 2.4.2
    • 2.4.2rc1
    • 2.4.3
    • 2.4.3rc1
    • 2.5.0
    • 2.5.0rc1
    • 2.5.0rc2
    • 2.5.0rc3
    • 2.5.1
    • 2.5.1rc1
    • 2.5.1rc2
    • 2.5.2
    • 2.5.2rc1
    • 2.5.2rc2
    • 2.5.3
    • 2.5.3rc1
    • 2.5.3rc2
    • 2.6.0
    • 2.6.0b1
    • 2.6.0rc1
    • 2.6.0rc2
    • 2.6.0rc3
    • 2.6.0rc4
    • 2.6.0rc5
    • 2.6.1rc1
    • 2.6.1rc2
    • 2.6.1rc3
    Affected ranges
    • ECOSYSTEM: ≥ 2.3.0, < 2.6.1

    Update to 2.6.1

  • apache-airflow-providers-cncf-kubernetes PyPI

    Versions
    • 5.2.0
    • 5.2.1
    • 5.2.1rc1
    • 5.2.2
    • 5.2.2rc1
    • 5.3.0
    • 5.3.0rc1
    • 6.0.0
    • 6.0.0rc1
    • 6.1.0
    • 6.1.0rc1
    • 6.2.0rc1
    • 7.0.0rc2
    Affected ranges
    • ECOSYSTEM: ≥ 5.2.0, < 7.0.0

    Update to 7.0.0

Original sources

Check your server →