Skip to main content

Apache Airflow SMTP Provider EUVDEUVD-2026-26359

| CVE-2026-41016 MEDIUM
Improper Certificate Validation (CWE-295)
2026-04-30 apache
5.9
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Position on worker-SMTP network path
  2. Delivery
    Intercept SMTP connection attempt
  3. Exploit
    Present self-signed certificate to worker
  4. Install
    Worker accepts certificate (no validation)
  5. C2
    Complete TLS handshake with attacker
  6. Execute
    Capture SMTP credentials in LOGIN/AUTH command
  7. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Apache Airflow Providers SMTP 2.0.0 <3.0.0

Affected Packages

pypi apache-airflow-providers-smtp fix: 3.0.0

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

Vendor (apache) PRIMARY 5.9 MEDIUM
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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 30, 2026 - 14:22 NVD
5.9 (MEDIUM)
Patch released
Apr 30, 2026 - 10:00 nvd
Patch available
CVE Published
Apr 30, 2026 - 09:09 nvd
MEDIUM 5.9

DescriptionCVE.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

EPSS Score
0.0%
Top 99% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy