CVE-2024-29733: Improper Certificate Validation vulnerability in Apache Airflow FTP Provider
Improper Certificate Validation vulnerability in Apache Airflow FTP Provider. The FTP hook lacks complete certificate validation in FTPTLS connections, which can potentially be leveraged. Implementing proper certificate validation by passing context=ssl.createdefaultcontext() during FTPTLS instantiation is used as mitigation to validate the certificates properly.
Published Apr 21, 2024 · Updated Jul 3, 2024
Affected packages
apache-airflow-providers-ftp
- Ecosystem
- PyPI
- Affected
- < 3.7.0
- Fixed in
- 3.7.0
- Check
pip show apache-airflow-providers-ftp
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Improper Certificate Validation vulnerability in Apache Airflow FTP Provider.
The FTP hook lacks complete certificate validation in FTP_TLS connections, which can potentially be leveraged. Implementing proper certificate validation by passing context=ssl.create_default_context() during FTP_TLS instantiation is used as mitigation to validate the certificates properly.
This issue affects Apache Airflow FTP Provider: before 3.7.0.
Users are recommended to upgrade to version 3.7.0, which fixes the issue.
Credited to ericwb.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29733
- https://github.com/apache/airflow/pull/38266
- https://docs.python.org/3/library/ssl.html#best-defaults
- https://github.com/apache/airflow/blob/95e26118b828c364755f3a8c96870f3591b01c31/airflow/providers/ftp/hooks/ftp.py#L280
- https://lists.apache.org/thread/265t5zbmtjs6h9fkw52wtp03nsbplky2
- https://github.com/advisories/GHSA-3gg8-mc87-cq3h
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
