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.
CVSS
No CVSS.
References
Configurations
No configuration.
History
16 Nov 2026, 19:17
| Type | Values Removed | Values Added |
|---|---|---|
| CWE | CWE-319 |
10 Nov 2026, 19:19
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-11-10 19:19
Updated : 2026-11-16 19:17
NVD link : CVE-2026-115559
Mitre link : CVE-2026-115559
CVE.ORG link : CVE-2026-115559
JSON object : View
Products Affected
No product.
CWE
CWE-319
Cleartext Transmission of Sensitive Information
