Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-55558— aiosmtplib: STARTTLS response injection

Quick assessment

Affected
cole aiosmtplib
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Cole Maclean aiosmtplib是Cole Maclean个人开发者的一个异步SMTP客户端库。 Cole Maclean aiosmtplib 5.1.2之前版本存在输入验证错误漏洞,该漏洞源于SMTPProtocol.start_tls在启动TLS握手时未清除SMTPProtocol._buffer,攻击者可在明文220响应后插入响应行,导致后续SMTP命令和响应对失步。

CVSS 5.9 · Medium EPSS 0.40% · P33

Affected Version Matrix 1

VendorProduct Version RangeStatus
cole aiosmtplib < 5.1.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-55558

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
aiosmtplib: STARTTLS response injection
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
输出中的特殊元素转义处理不恰当(注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Cole Maclean aiosmtplib 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Cole Maclean aiosmtplib是Cole Maclean个人开发者的一个异步SMTP客户端库。 Cole Maclean aiosmtplib 5.1.2之前版本存在输入验证错误漏洞,该漏洞源于SMTPProtocol.start_tls在启动TLS握手时未清除SMTPProtocol._buffer,攻击者可在明文220响应后插入响应行,导致后续SMTP命令和响应对失步。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
cole aiosmtplib < 5.1.2 -

II. Public POCs for CVE-2026-55558

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-55558

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-55558 (1)

Vendor Advisories for CVE-2026-55558 (1)

Vendor Pages for CVE-2026-55558 (1)

IV. Related Vulnerabilities