StraitOfVuln
Latest / CVE-2026-115559

CVE-2026-115559

MediumCVSS 6.3 (v4.0)Awaiting Analysis
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-115559
Published / updated
10 Nov 2026, 19:19 UTC · last modified 16 Nov 2026, 19:17 UTC
Severity
MEDIUM
CVSS score
6.3 · v4.0 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · Attack vector: Network
Affected vendor
Python Software Foundation
Affected products
CPython
Affected versions
CPython: before 3.16.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
CPython 3.16.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.20% probability of exploitation in the next 30 days · 11% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
cna@python.org