Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPosition on worker-SMTP network path
-
DeliveryIntercept SMTP connection attempt
-
ExploitPresent self-signed certificate to worker
-
InstallWorker accepts certificate (no validation)
-
C2Complete TLS handshake with attacker
-
ExecuteCapture SMTP credentials in LOGIN/AUTH command
-
ImpactExfiltrate or reuse credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | STARTTLS must be enabled on the SMTP connection - SMTP_SSL (which uses proper SSL context) is not affected. The SMTP connection must originate from an Airflow worker to an external SMTP server; internal Docker Compose or containerized SMTP services on the same host are less vulnerable due to localhost binding. An attacker must be positioned on the network path (Layer 3 or Layer 2) between the worker and SMTP server - this typically requires either a compromised network device, ARP spoofing capability on the same subnet, DNS/BGP hijacking, or ISP-level interception. The attacker must be able to capture and respond to the initial SMTP connection attempt before the legitimate server. Default or unmodified airflow.cfg settings leave the vulnerability active; no non-standard configuration is required to be vulnerable. Mitigation explicitly requires setting ssl_context = 'none' or running on a trusted network - the default behavior post-patch validates certificates. |
| Impact | CVSS score of 5.9 (medium) reflects AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - network-accessible but high complexity (requires MITM positioning), unauthenticated, impacts confidentiality only. However, EPSS score of 0.01% (percentile 1%) strongly suggests minimal real-world exploitation despite the theoretical attack vector. The SSVC framework analysis reveals: exploitation requires precise network positioning (not automated), technical impact is moderate (credential theft), but threat actor motivation is contextual (targets environments with exposed SMTP traffic). The AC:H (high complexity) requirement indicates attacker must be on the network path between worker and SMTP server - a significant constraint in modern cloud deployments with encrypted inter-service communication and secured network segments. The vulnerability is not actively exploited per KEV status, and no public exploit code is referenced. Organizations using managed SMTP services (AWS SES, Gmail, Office 365) behind encrypted channels face substantially lower risk than those running internal SMTP servers on untrusted networks. The true risk is highly dependent on deployment topology, not just the CVSS score. |
| Exploit ScenarioDerived | An attacker positioned on the network between an Airflow worker and its configured SMTP server (via ARP spoofing, DNS hijacking, BGP hijacking, or compromised network infrastructure) intercepts the initial SMTP connection. When Airflow initiates STARTTLS, the attacker presents a self-signed certificate. The vulnerable code accepts it without validation, completes the TLS handshake with the attacker, and sends SMTP login credentials (typically base64-encoded username and password) in the subsequent LOGIN or AUTH command. The attacker captures these credentials for reuse against the actual SMTP server or other targets. AC:H reflects that the attacker requires precise network positioning; this is not a direct network exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 30, 2026
Apache Airflow's SmtpHook performs STARTTLS upgrades without SSL certificate validation, allowing man-in-the-middle attackers to intercept SMTP credentials. Remote unauthenticated attackers positioned between an Airflow worker and SMTP server can present a self-signed certificate, complete the TLS handshake, and capture login credentials sent after the upgrade. The vulnerability affects apache-airflow-providers-smtp versions 2.0.0 through 2.x and is patched in version 3.0.0 or later. No public exploit code identified at time of analysis, but EPSS score of 0.01% indicates low real-world exploitation probability despite confidentiality impact.
RemediationAI
Upgrade to apache-airflow-providers-smtp version 3.0.0 or later, which includes the certificate validation fix. The patched version implements ssl.create_default_context() by default for STARTTLS connections, providing immediate protection without configuration changes. For deployments unable to upgrade immediately, certificate validation can be explicitly disabled by setting the connection extra field ssl_context to 'none' (via airflow.cfg email.ssl_context = 'none' for core email, or the SmtpHook connection object for provider usage), but this preserves the vulnerability and is recommended only for isolated test environments with self-signed SMTP servers. A more effective interim mitigation is network segmentation: restrict Airflow worker egress to only authorized SMTP servers via firewall rules, implement VPN or mTLS between workers and SMTP endpoints, or use SMTP_SSL (port 465) instead of STARTTLS (port 587) if the SMTP server supports it (this relies on the existing socket-level TLS rather than the vulnerable upgrade path). See vendor advisory at https://lists.apache.org/thread/gb202qy5r31bgdd3d51d7s5o1jh40kc4 and GitHub PR https://github.com/apache/airflow/pull/65346 for implementation details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the SmtpHook class (airflow.providers.smtp.hooks.smtp) which calls Python's smtplib.SMTP.starttls() method without passing an SSL context parameter. Per CWE-295 (Improper Certificate Validation), when no context is provided to starttls(), the Python standard library defaults to accepting any certificate without validation. The SMTP provider supports both synchronous (get_conn) and asynchronous (aget_conn) connection paths. The affected code path is triggered when connecting to SMTP servers using STARTTLS encryption (as opposed to SMTP_SSL, which already had proper context handling). The fix (PR #65346) introduces a _build_ssl_context() method that passes ssl.create_default_context() to starttls(), which validates the server certificate against the system's trusted CA bundle. A configuration option (email.ssl_context or connection extra ssl_context field) allows intentional opt-out for self-signed certificate scenarios.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (apache) · only source for this CVE.
CVSS VectorVendor: apache
Lifecycle Timeline
3DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-26359
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB