CVE-2026-41016: CWE-295: Improper Certificate Validation in Apache Software Foundation Apache Airflow Providers SMTP
Apache Airflow's SMTP provider `SmtpHook` called Python's `smtplib.SMTP.starttls()` without an SSL context, so no certificate validation was performed on the TLS upgrade. A man-in-the-middle between the Airflow worker and the SMTP server could present a self-signed certificate, complete the STARTTLS upgrade, and capture the SMTP credentials sent during the subsequent `login()` call. Users are advised to upgrade to the `apache-airflow-providers-smtp` version that contains the fix.
AI Analysis
Technical Summary
Apache Airflow Providers SMTP version 2.0.0 contains an improper certificate validation vulnerability (CWE-295) in its SmtpHook implementation. The vulnerability arises because the starttls() method is called without an SSL context, which disables certificate validation during the TLS handshake. Consequently, an attacker positioned between the Airflow worker and the SMTP server can perform a man-in-the-middle attack by presenting a self-signed certificate, successfully completing the STARTTLS upgrade, and capturing SMTP credentials sent during the subsequent login call. This vulnerability has a CVSS 3.1 base score of 5.9, indicating medium severity. No official patch or remediation guidance has been published by the vendor as of the provided data.
Potential Impact
An attacker capable of intercepting network traffic between the Airflow worker and the SMTP server can exploit this vulnerability to capture SMTP credentials by presenting a fraudulent TLS certificate during the STARTTLS upgrade. This compromises the confidentiality of SMTP credentials but does not affect integrity or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation level has been confirmed by the vendor yet. Users should monitor the Apache Software Foundation advisories for updates and upgrade to the fixed version of apache-airflow-providers-smtp once it is released. Until then, consider restricting network access between Airflow workers and SMTP servers to trusted networks to reduce the risk of man-in-the-middle attacks.
CVE-2026-41016: CWE-295: Improper Certificate Validation in Apache Software Foundation Apache Airflow Providers SMTP
Description
Apache Airflow's SMTP provider `SmtpHook` called Python's `smtplib.SMTP.starttls()` without an SSL context, so no certificate validation was performed on the TLS upgrade. A man-in-the-middle between the Airflow worker and the SMTP server could present a self-signed certificate, complete the STARTTLS upgrade, and capture the SMTP credentials sent during the subsequent `login()` call. Users are advised to upgrade to the `apache-airflow-providers-smtp` version that contains the fix.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Apache Airflow Providers SMTP version 2.0.0 contains an improper certificate validation vulnerability (CWE-295) in its SmtpHook implementation. The vulnerability arises because the starttls() method is called without an SSL context, which disables certificate validation during the TLS handshake. Consequently, an attacker positioned between the Airflow worker and the SMTP server can perform a man-in-the-middle attack by presenting a self-signed certificate, successfully completing the STARTTLS upgrade, and capturing SMTP credentials sent during the subsequent login call. This vulnerability has a CVSS 3.1 base score of 5.9, indicating medium severity. No official patch or remediation guidance has been published by the vendor as of the provided data.
Potential Impact
An attacker capable of intercepting network traffic between the Airflow worker and the SMTP server can exploit this vulnerability to capture SMTP credentials by presenting a fraudulent TLS certificate during the STARTTLS upgrade. This compromises the confidentiality of SMTP credentials but does not affect integrity or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation level has been confirmed by the vendor yet. Users should monitor the Apache Software Foundation advisories for updates and upgrade to the fixed version of apache-airflow-providers-smtp once it is released. Until then, consider restricting network access between Airflow workers and SMTP servers to trusted networks to reduce the risk of man-in-the-middle attacks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-04-16T02:38:58.158Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f407bccbff5d86100b0c68
Added to database: 5/1/2026, 1:54:04 AM
Last enriched: 5/1/2026, 1:54:25 AM
Last updated: 5/1/2026, 5:24:21 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.