Vulnerability
CVE-2026-115559
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.
24 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
AZL-113323
CVE-2026-115559 affecting package python-py 1.11.0-1
-
AZL-113329
CVE-2026-115559 affecting package python3 3.12.16-2
- CGA-3gwx-xx65-88h7
- CGA-49wq-9r9h-82hx
- CGA-678p-h9gh-7xcv
- CGA-6jfm-mxg7-r6m7
- CGA-6xgj-68hx-crr2
- CGA-738r-4fvj-mjvw
- CGA-ggrw-49g5-vj92
- CGA-j9hj-3frm-pp7v
- CGA-m8px-jh69-pj3g
- CGA-qrpq-cwgx-rfpf
- CGA-wvc9-wh83-j3mv
- CGA-x2vv-58hf-jgp9
-
CNA-CVE-2026-115559
imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS
-
DEBIAN-CVE-2026-115559
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()…
-
FEDORA-2026-4376a059cd
python3.16-3.16.0~a2-1.fc44
-
FEDORA-2026-5ede9f8acd
python3.16-3.16.0~a2-1.fc43
-
RHSA-2026:99588
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHSA-2026:99772
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHSA-2026:99775
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHSA-2026:99777
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHVEX-CVE-2026-115559
python: python: Response injection in imaplib via unpurged buffer during STARTTLS
-
UBUNTU-CVE-2026-115559
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()…