imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Python Software Foundation | CPython | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Python | Cpython |
|
||||||||
| Python Software Foundation | Cpython |
|
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.287% probability within 30 days)
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-200 |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Python
Python cpython Python Software Foundation Python Software Foundation cpython |
|
| Vendors & Products |
Python
Python cpython Python Software Foundation Python Software Foundation cpython |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-200 |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS | |
| References |
| |
| Metrics |
cvssV4_0
|
No weakness.