Libpython: imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS
Affects libpythonSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 6.3 Medium : upgrade to 3.16.0 when convenient.
Data as of 27 Nov 2026, 08:29 UTC
Thin evidence
One scorer or none| CNA (PSF) | CVSS 4.0 | 6.3 |
|---|
- Patch
- Available – fixed in 3.16.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:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade libpython to 3.16.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamilibpythonpkg:bitnami/libpythonOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade libpython to version 3.16.0 or later, where this vulnerability has been fixed by properly clearing the internal read buffer during the STARTTLS handshake. No other mitigations are indicated or necessary as the patch addresses the root cause.
Description
A vulnerability in libpython's imaplib module (CVE-2026-115559) affects versions prior to 3.16.0. The imaplib.STARTTLS method wraps the socket in TLS but does not clear the internal read buffer, causing plaintext bytes received before the TLS handshake to be treated as if they were received over the encrypted channel. This allows a network attacker to inject forged lines after the server's STARTTLS OK response, which the client then accepts as legitimate responses after the handshake completes. This vulnerability is related to the STARTTLS command/response injection class previously seen in CVE-2011-0411. A fix is available in libpython version 3.16.0.