Skip to main content
CVE-2026-115559VulnerabilityPublished

Libpython: imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS

Affects libpythonSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-115559· Medium 6.3

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

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (PSF)CVSS 4.06.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Bitnamilibpythonpkg:bitnami/libpythonOther threatsAffected
  • <3.16.0
Fixed in
  • 3.16.0

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.

References

Community reviews

Loading reviews…