Skip to main content
CVE-2026-55558VulnerabilityPublished Updated

src/aiosmtplib/protocol.py consumes the server's · Prior to 5.1.2, SMTPProtocol.start_tls

Affects aiosmtplibSource GCVE Database

0
Compare
Authoritative record:CVE-2026-55558· Medium 5.9

Not known to be exploited · CVSS 5.9 Medium · fixed in 5.1.2 : update aiosmtplib when convenient.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.1.2
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10aiosmtplibpkg:deb/ubuntu/aiosmtplib?arch=source&distro=stonkingOther threatsAffected
  • =5.1.0-1
  • =5.1.0-3
  • =5.1.2-1
Fixed in–
Ubuntu 26.04 LTSaiosmtplibpkg:deb/ubuntu/aiosmtplib?arch=source&distro=resoluteOther threatsAffected
  • 4.0.0-1 – 5.1.0-1
4 affected builds
Fixed in–
Ubuntu 22.04 LTSaiosmtplibpkg:deb/ubuntu/aiosmtplib?arch=source&distro=jammyOther threatsAffected
  • =1.1.4-1
  • =1.1.4-2
  • =1.1.6-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…