CVE-2026-115559

Medium

Description

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.

SeverityMedium
CVSS6.3
Exploit probability—
ProductCPython
PublishedNov 10, 2026
First seenNov 10, 2026
Weakness typeCWE-319CWE-319

How to fix

Affected products

ProductAffected versionsFixed in
Python Software Foundation CPythonv < 3.16.03.16.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-115559 · CPython · Vulnerabilities · Dark Radar