CVE-2026-55558
aiosmtplib: STARTTLS response injection
Description
aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.2, SMTPProtocol.start_tls in src/aiosmtplib/protocol.py consumes the server's 220 response and starts the TLS handshake without clearing SMTPProtocol._buffer. An active network attacker can place attacker-chosen SMTP response lines after the plaintext 220 response in the same network segment. The method then calls loop.start_tls; those bytes survive the transport upgrade and are parsed as the first response from inside the TLS session, desynchronizing subsequent SMTP command and response pairs. Connections using start_tls=True or opportunistic STARTTLS are affected, while connections using use_tls=True are not. This issue is fixed in version 5.1.2.
INFO
Published Date :
Aug. 20, 2026, 3:17 p.m.
Last Modified :
Oct. 18, 2026, 8:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | MITRE-CVE |
Solution
- Update aiosmtplib to version 5.1.2.
- Ensure STARTTLS connections are properly handled.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-55558.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-55558 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-55558
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-55558 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-55558 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 18, 2026
Action Type Old Value New Value Added Translation Title: aiosmtplib de cole, Description: aiosmtplib es un cliente SMTP asíncrono para usar con asyncio. Antes de la versión 5.1.2, SMTPProtocol.start_tls en src/aiosmtplib/protocol.py consume la respuesta 220 del servidor e inicia el handshake TLS sin limpiar SMTPProtocol._buffer. Un atacante de red activo puede colocar líneas de respuesta SMTP elegidas por el atacante después de la respuesta 220 en texto plano en el mismo segmento de red. El método luego llama a loop.start_tls; esos bytes sobreviven a la actualización del transporte y se analizan como la primera respuesta desde dentro de la sesión TLS, desincronizando los pares de comando y respuesta SMTP subsiguientes. Las conexiones que usan start_tls=True o STARTTLS oportunista se ven afectadas, mientras que las conexiones que usan use_tls=True no lo están. Este problema se soluciona en la versión 5.1.2. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 20, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-55558', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-20T20:00:16.093023Z'} -
New CVE Received by [email protected]
Aug. 20, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'cole', 'product': 'aiosmtplib', 'versions': [{'status': 'affected', 'version': '< 5.1.2'}]}] Added Description aiosmtplib is an asynchronous SMTP client for use with asyncio. Prior to 5.1.2, SMTPProtocol.start_tls in src/aiosmtplib/protocol.py consumes the server's 220 response and starts the TLS handshake without clearing SMTPProtocol._buffer. An active network attacker can place attacker-chosen SMTP response lines after the plaintext 220 response in the same network segment. The method then calls loop.start_tls; those bytes survive the transport upgrade and are parsed as the first response from inside the TLS session, desynchronizing subsequent SMTP command and response pairs. Connections using start_tls=True or opportunistic STARTTLS are affected, while connections using use_tls=True are not. This issue is fixed in version 5.1.2. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N Added CWE CWE-74 Added Reference https://github.com/cole/aiosmtplib/commit/9fab7ba1361dbf7622ede1315a24be805cff09c9 Added Reference https://github.com/cole/aiosmtplib/releases/tag/v5.1.2 Added Reference https://github.com/cole/aiosmtplib/security/advisories/GHSA-vxj7-4xrp-5vr4