CVE-2016-0772 in Python
The smtplib library in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 does not return an error when StartTLS fails, which might allow man-in-the-middle attackers to bypass the TLS protections by leveraging a network position between the client and the registry to block the StartTLS comm...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Python | Python | 3.0 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3+24 more3.1.4 3.1.5 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.5.0 3.5.1 ≤ 2.7.11 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
The smtplib library in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 does not return an error when StartTLS fails, which might allow man-in-the-middle attackers to bypass the TLS protections by leveraging a network position between the client and the registry to block the StartTLS command, aka a "StartTLS stripping attack."
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2016-0772 |
|---|---|
| BreachSpider ID | BS-2016-GLOBAL-300184-M |
| CVSS vector | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N |
| Published | 2016-09-02 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-693: CWE-693
Related attack patterns (CAPEC)
CAPEC-51 Poison Web Service Registry via CWE-693
CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data via CWE-693
CAPEC-59 Session Credential Falsification through Prediction via CWE-693
CAPEC-65 Sniff Application Code via CWE-693
CAPEC-107 Cross Site Tracing via CWE-693
Show all 17
CAPEC-127 Directory Indexing via CWE-693
CAPEC-237 Escaping a Sandbox by Calling Code in Another Language via CWE-693
CAPEC-477 Signature Spoofing by Mixing Signed and Unsigned Content via CWE-693
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-693
CAPEC-17 Using Malicious Files via CWE-693
CAPEC-20 Encryption Brute Forcing via CWE-693
CAPEC-36 Using Unpublished Interfaces or Functionality via CWE-693
CAPEC-87 Forceful Browsing via CWE-693
CAPEC-480 Escaping Virtualization via CWE-693
CAPEC-668 Key Negotiation of Bluetooth Attack (KNOB) via CWE-693
CAPEC-22 Exploiting Trust in Client via CWE-693
CAPEC-74 Manipulating State via CWE-693
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2016. A medium severity vulnerability affects Python systems (CVE-2016-0772). Public exploit code is available. Isolate affected systems if patching is not feasible.
Vulnerability details: The smtplib library in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 does not return an error when StartTLS fails, which might allow man-in-the-middle attackers to bypass the TLS protections by leveraging a network position between the client and the registry to block the StartTLS command, aka a "StartTLS stripping attack." CVSS vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N.
Questions
What is CVE-2016-0772?
This vulnerability was disclosed in 2016. A medium severity vulnerability affects Python systems (CVE-2016-0772). Public exploit code is available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2016-0772?
CVE-2016-0772 has CVSS 6.5 (Medium). Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N. EPSS: 15.4%.
Is CVE-2016-0772 actively exploited?
Public exploit available for CVE-2016-0772. Exploitation risk elevated.
How do I remediate CVE-2016-0772?
Priority: MONITOR.
What systems are affected by CVE-2016-0772?
CVE-2016-0772 affects Python Python.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Python","product":"Python","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.