CVE-2026-55558
published medium CVSS 3.1 · 5.9aiosmtplib: STARTTLS response injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cole | — | aiosmtplib< 5.1.2 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiosmtplibaarch64 | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiosmtplibppc64le | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiosmtplibs390x | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-aiosmtplibx86_64 | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiosmtplibaarch64 | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiosmtplibppc64le | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiosmtplibs390x | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-aiosmtplibx86_64 | Advisory build | 5.1.2-1.1 | OPENSUSE-SU-2026:11569-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cole | aiosmtplib | < 5.1.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
3Provider assertions
2GitHub_M · cna
aiosmtplib: STARTTLS response injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 08d380258fd435bcc2fafa8130307f2e9d74ff701d426e2471429b3d1bc0f695
- Ingested
- 23 Sep 2026, 09:21:01 UTC
- Source record
- Official CVE record