# CVE-2026-115559: imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-10 · Modified: 2026-11-16
- Aliases: UBUNTU-CVE-2026-115559, DEBIAN-CVE-2026-115559, CGA-49wq-9r9h-82hx, CGA-x2vv-58hf-jgp9, 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-3gwx-xx65-88h7, RHSA-2026:99588, RHSA-2026:99772, RHSA-2026:99775
- Record: https://cvemate.com/vulnerability/CVE-2026-115559 · JSON: https://cvemate.com/vulnerability/CVE-2026-115559/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v4.0, CVE.org) 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
- EPSS: 0.201%, percentile 10.547%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 56)

- chainguard python-3.10 (Chainguard): All versions (No fix recorded)
- chainguard python-3.11 (Chainguard): All versions (No fix recorded)
- chainguard python-3.12 (Chainguard): All versions (No fix recorded)
- chainguard python-3.13 (Chainguard): All versions (No fix recorded)
- chainguard python-3.14 (Chainguard): All versions (No fix recorded)
- chainguard python-3.15 (Chainguard): All versions (No fix recorded)
- wolfi python-3.10 (Wolfi): All versions (No fix recorded)
- wolfi python-3.11 (Wolfi): All versions (No fix recorded)
- wolfi python-3.12 (Wolfi): All versions (No fix recorded)
- wolfi python-3.13 (Wolfi): All versions (No fix recorded)
- wolfi python-3.14 (Wolfi): All versions (No fix recorded)
- wolfi python-3.15 (Wolfi): All versions (No fix recorded)
- debian python3.11 (Debian): All versions (No fix recorded)
- debian python3.13 (Debian): All versions (No fix recorded)
- debian python3.14 (Debian): All versions (No fix recorded)
- debian python3.15 (Debian): All versions (No fix recorded)
- ubuntu python2.7 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.10 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.11 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.12 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 21)

- <https://github.com/python/cpython/pull/160370>
- <https://github.com/python/cpython/issues/160369>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/LVAGFOFG26QVXEM6VXXPRMMOZBHM4CVB/>
- <https://ubuntu.com/security/CVE-2026-115559>
- <https://www.cve.org/CVERecord?id=CVE-2026-115559>
- <https://security-tracker.debian.org/tracker/CVE-2026-115559>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115559.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-115559>
- <https://github.com/python/cpython>
- <https://access.redhat.com/errata/RHSA-2026:99588>
- <https://access.redhat.com/security/cve/CVE-2026-115559>
- <https://access.redhat.com/security/cve/CVE-2026-115791>
- <https://access.redhat.com/security/cve/CVE-2026-19552>
- <https://access.redhat.com/security/updates/classification/>
- <https://images.redhat.com/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_99588.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2570879>
- <https://access.redhat.com/errata/RHSA-2026:99772>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_99772.json>
- <https://access.redhat.com/errata/RHSA-2026:99775>

---

Data as of 2026-12-05T04:26:41.243Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
