CVE-2026-115559

NameCVE-2026-115559
DescriptionIMAP4.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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python3.11 (PTS)bookworm3.11.2-6+deb12u8vulnerable
bookworm (security)3.11.2-6+deb12u9vulnerable
python3.13 (PTS)trixie3.13.5-2+deb13u5vulnerable
python3.14 (PTS)forky, sid3.14.10-1vulnerable
python3.15 (PTS)forky, sid3.15.2-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python3.11source(unstable)(unfixed)
python3.13source(unstable)(unfixed)
python3.14source(unstable)(unfixed)
python3.15source(unstable)(unfixed)

Notes

[trixie] - python3.13 <no-dsa> (Minor issue)
https://github.com/python/cpython/issues/160369
https://github.com/python/cpython/pull/160370
https://github.com/python/cpython/pull/161761 (3.15 branch)
https://github.com/python/cpython/pull/161760 (3.14 branch)
https://github.com/python/cpython/pull/161759 (3.13 branch)
https://github.com/python/cpython/pull/161757 (3.11 branch)

Search for package or bug name: Reporting problems