๐Ÿ” CVE Alert

CVE-2026-115559

UNKNOWN 0.0

imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

IMAP4.starttls() wraps the socket in TLS but leaves self._readbuf, imaplib's own read-ahead buffer, untouched. Any plaintext bytes that arrived in the same recv() as the tagged OK to STARTTLS are returned by readline() after the handshake, so the client treats them as the first responses on the protected channel. A network attacker who cannot break TLS can append forged lines after the server's OK, let the handshake complete with the real server and a valid certificate, and have the client accept the forged CAPABILITY and the forged tagged completion of the next command. This is the STARTTLS command/response injection class of CVE-2011-0411.

Vendor python software foundation
Product cpython
Published Nov 10, 2026
Stay Ahead of the Next One

Get instant alerts for python software foundation cpython

Be the first to know when new unknown vulnerabilities affecting python software foundation cpython are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

Python Software Foundation / CPython
0 < 3.16.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/python/cpython/pull/160370 github.com: https://github.com/python/cpython/issues/160369 mail.python.org: https://mail.python.org/archives/list/[email protected]/thread/LVAGFOFG26QVXEM6VXXPRMMOZBHM4CVB/

Credits

๐Ÿ” digit50 (https://github.com/digit50) Jelle Zijlstra (https://github.com/JelleZijlstra) Hugo van Kemenade (https://github.com/hugovk) Seth Larson (https://github.com/sethmlarson)