CVE catalog

CVE-2026-55558

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 wit

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.40% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianaiosmtplibsid5.1.3-1fixed
Debianaiosmtplibforky5.1.3-1fixed
Debianaiosmtplibtrixie4.0.0-1vulnerable
Debianaiosmtplibbookworm2.0.0-1vulnerable
PipaiosmtplibNot reported5.1.2fixed
Opensusepython-aiosmtplibtumbleweed5.1.2-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianaiosmtplibsourcesid5.1.2-1not yet assignedNot reportedNot reported
Debianaiosmtplibsourceforky5.1.2-1not yet assignedNot reportedNot reported
Debianaiosmtplibsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianaiosmtplibsourcebookworm(unfixed)not yet assignedNot reportedNot reported
PipaiosmtplibpipNot reported5.1.2Not reportedGHSA-VXJ7-4XRP-5VR4Not reported
Opensusepython-aiosmtplibrpmtumbleweed5.1.2-1.1Not reportedOPENSUSE-SU-2026:11569-1Not reported

Notes

[trixie] aiosmtplib: Minor issue [bookworm] aiosmtplib: Minor issue; can be fixed with next update

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [aiosmtplib]

    Details (2)
    • 2.0.0-1 · all · bookworm

      Affected

      nvd · aiosmtplib · debian · bookworm; nvd · aiosmtplib · debian · 12

    • 2.0.0-1 · all · bookworm

      Affected

      nvd · aiosmtplib · debian · bookworm; nvd · aiosmtplib · debian · 12

  • Source package: [aiosmtplib]

    Details (2)
    • 2.0.0-1 · all · bookworm

      Affected

      nvd · aiosmtplib · debian · bookworm; nvd · aiosmtplib · debian · 12

    • 2.0.0-1 · all · bookworm

      Affected

      nvd · aiosmtplib · debian · bookworm; nvd · aiosmtplib · debian · 12

[Debian 13 (Trixie)]

  • Source package: [aiosmtplib]

    Details (2)
    • 4.0.0-1 · all · trixie

      Affected

      nvd · aiosmtplib · debian · 13

    • 4.0.0-1 · all · trixie

      Affected

      nvd · aiosmtplib · debian · 13

  • Source package: [aiosmtplib]

    Details (2)
    • 4.0.0-1 · all · trixie

      Affected

      nvd · aiosmtplib · debian · 13

    • 4.0.0-1 · all · trixie

      Affected

      nvd · aiosmtplib · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-aiosmtplib]

    Details (1)
    • 5.1.2-1.1 · noarch · tumbleweed

      Unknown · Fixed: 5.1.2-1.1

      Version impact unknown

      nvd · python-aiosmtplib · opensuse · tumbleweed

  • Source package: [python-aiosmtplib]

    Details (1)
    • 5.1.2-1.1 · noarch · tumbleweed

      Unknown · Fixed: 5.1.2-1.1

      Version impact unknown

      nvd · python-aiosmtplib · opensuse · tumbleweed

Observed:

References