PT-2026-79027 · Pypi · Aiosmtplib

CVE-2026-55558

·

Published

2026-08-20

·

Updated

2026-09-10

CVSS v3.1

5.9

Medium

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions aiosmtplib versions prior to 5.1.2
Description The SMTPProtocol.start tls() function in src/aiosmtplib/protocol.py fails to clear the SMTPProtocol. buffer after consuming the server's 220 response and initiating the TLS handshake. A network attacker can inject malicious SMTP response lines following the plaintext 220 response. These bytes persist through the transport upgrade and are incorrectly parsed as the initial response within the TLS session, leading to the desynchronization of subsequent SMTP command and response pairs. This issue affects connections utilizing start tls=True or opportunistic STARTTLS, but does not impact connections using use tls=True.
Recommendations Update to version 5.1.2.

Exploit

Fix

Special Elements Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-55558
ECHO-C2E7-D06A-81E1
GHSA-VXJ7-4XRP-5VR4
OPENSUSE-SU-2026:11569-1
PYSEC-2026-3805

Affected Products

Aiosmtplib