PYSEC-2026-4396: Apache Airflow has no certificate validation on SMTP STARTTLS connections

Published Jun 1, 2026
·
Updated

Apache Airflow's EmailOperator and the underlying airflow.utils.email helpers established SMTP STARTTLS connections without verifying the remote certificate when the deployment used [email] smtpstarttls=True without [email] smtpssl. An attacker positioned between the worker and the configured SMTP server (network MITM — typical hostile-network attack-surface for environments where the SMTP relay sits outside the worker's trust boundary) could present a self-signed certificate, have the worker complete the STARTTLS handshake silently, and capture the SMTP AUTH credentials and message contents the worker forwarded.

This CVE covers the core apache-airflow side of the same root cause already covered for the SMTP provider by CVE-2026-41016 (published 2026-04-27, covering apache-airflow-providers-smtp). Users who already applied the SMTP-provider fix from CVE-2026-41016 should additionally upgrade apache-airflow to 3.2.2 or later to cover the core-side path through airflow.utils.email. Affects deployments configured with smtpstarttls=True and smtpssl=False where the SMTP relay is reachable across a less-trusted network segment than the worker.

Users are advised to upgrade to apache-airflow 3.2.2 or later.

Affected Software

3 affected componentsFixes available
pypi/apache-airflow<3.2.2
pip/apache-airflow>=2.0.0<3.2.2
3.2.2
pip/apache-airflow-providers-smtp>=2.0.0<3.2.2
3.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/apache-airflow to a version that resolves this vulnerability.

    Fixed in 3.2.2
  2. Upgrade

    Upgrade pip/apache-airflow-providers-smtp to a version that resolves this vulnerability.

    Fixed in 3.2.2
  3. Upgrade

    Upgrade apache-airflow to a version that resolves this vulnerability.

    Fixed in 3.2.2

Event History

Jun 1, 2026
CVE Published
via OSV·07:53 AM
Data Sourced
via OSV·07:53 AM
DescriptionSeverityWeakness
Advisory Published
via OSV·09:16 AM
Data Sourced
via OSV·09:16 AM
Affected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203