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."
CVE-2016-0772
Score 6.5 from GitHub Security Advisory published 2022-05-14. NVD baseline CVSS 6.5; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 6.5
- EG Score
- 6.5(medium)
- EG Risk
- 50(Track)EG Risk 50/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity65% × 45%Exploitation40% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 15%
- EPSS %ILE
- 96%
- KEV
- Not listed
Published
September 2, 2016
Last Modified
June 17, 2026
References (36)
- secalert@redhathttp://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- secalert@redhathttp://rhn.redhat.com/errata/RHSA-2016-1626.html
- secalert@redhathttp://rhn.redhat.com/errata/RHSA-2016-1627.html
- secalert@redhathttp://rhn.redhat.com/errata/RHSA-2016-1628.html
- secalert@redhathttp://rhn.redhat.com/errata/RHSA-2016-1629.html
- secalert@redhathttp://rhn.redhat.com/errata/RHSA-2016-1630.html
- secalert@redhathttp://www.openwall.com/lists/oss-security/2016/06/14/9
- secalert@redhathttp://www.securityfocus.com/bid/91225
- secalert@redhathttp://www.splunk.com/view/SP-CAAAPSV
- secalert@redhathttp://www.splunk.com/view/SP-CAAAPUE
- secalert@redhathttps://bugzilla.redhat.com/show_bug.cgi?id=1303647
- secalert@redhathttps://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-5
- secalert@redhathttps://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-2
- secalert@redhathttps://hg.python.org/cpython/raw-file/v2.7.12/Misc/NEWS
- secalert@redhathttps://hg.python.org/cpython/rev/b3ce713fb9be
Patch Availability(6)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3.5-venv (3.5.2-2ubuntu0~16.04.1) @ xenial | 2026-05-22 | ubuntu |
| redhat | python-0:2.7.5-38.el7_2 | 2016-08-18 | redhat |
| redhat | python27-python-0:2.7.8-16.el7 | 2016-08-18 | redhat |
| redhat | python33-python-0:3.3.2-16.el7 | 2016-08-18 | redhat |
| redhat | rh-python34-python-0:3.4.2-13.el7 | 2016-08-18 | redhat |
| redhat | rh-python35-python-0:3.5.1-9.el7 | 2016-08-18 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(4 across 3 ecosystems)
Debian:7(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python2.7 | 2.7.3-6, 2.7.3-6+deb7u1, 2.7.3-6+deb7u2 | 2.7.3-6+deb7u3 | — |
| python3.2 | 3.2.3-7 | 3.2.3-7+deb7u1 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python2.7 | — | 2.7.12~rc1-1 | — |
Debian:8(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python3.4 | 3.4.2-1, 3.4.2-1+deb8u1 | 3.4.2-1+deb8u2 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(6)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Red HatRHSA-2016:1626MODERATE2016-06-11
RHSA-2016:1626 — Moderate
- Red HatRHSA-2016:1627MODERATE2016-06-11
RHSA-2016:1627 — Moderate
- Red HatRHSA-2016:1628MODERATE2016-06-11
RHSA-2016:1628 — Moderate
- Red HatRHSA-2016:1629MODERATE2016-06-11
RHSA-2016:1629 — Moderate
- Red HatRHSA-2016:1630MODERATE2016-06-11
RHSA-2016:1630 — Moderate
- UbuntuUSN-3134-1MEDIUM
Python vulnerabilities
Data Freshness Timeline
(refreshed 5× in last 7d / 19× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 137 total refreshes for this CVE.
- 2026-09-18 21:06 UTCOSV refresh
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:21 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-12 14:55 UTCEPSS rescore
- 2026-09-11 09:31 UTCEPSS rescore
- 2026-09-10 09:26 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-06 13:42 UTCEPSS rescore
- 2026-09-04 13:55 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 13:48 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-30 23:59 UTCOSV refresh
- 2026-08-27 14:20 UTCEPSS rescore
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-20 22:50 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:09 UTCEPSS rescore
- 2026-08-15 01:25 UTCEPSS rescore
- 2026-08-14 09:59 UTCOSV refresh
Show 75 moreShow fewer
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-11 13:36 UTCEPSS rescore
- 2026-08-09 13:42 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:12 UTCEPSS rescore
- 2026-08-04 15:04 UTCEPSS rescore
- 2026-08-01 04:11 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-29 20:07 UTCOSV refresh
- 2026-07-28 15:31 UTCEPSS rescore
- 2026-07-26 14:50 UTCEPSS rescore
- 2026-07-25 14:13 UTCEPSS rescore
- 2026-07-24 14:13 UTCEPSS rescore
- 2026-07-23 14:14 UTCEPSS rescore
- 2026-07-23 01:21 UTCEG score recompute
- 2026-07-23 00:22 UTCEG score recompute
- 2026-07-22 22:00 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:03 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-12 08:07 UTCOSV refresh
- 2026-07-12 05:42 UTCEPSS rescore
- 2026-07-11 08:23 UTCEPSS rescore
- 2026-07-09 19:05 UTCEPSS rescore
- 2026-07-09 19:05 UTCEPSS rescore
- 2026-07-08 15:10 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-05 02:26 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-28 14:04 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 13:30 UTCOSV refresh
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:15 UTCEPSS rescore
- 2026-06-10 13:18 UTCEPSS rescore
Publicly available exploits
(1 reference)Working exploit code is in the public domain (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-43500First seen Jul 3, 2016
Python smtplib 2.7.11 / 3.4.4 / 3.5.1 - Man In The Middle StartTLS Stripping
Open source ↗
Frequently asked(5)
What is CVE-2016-0772?
When was CVE-2016-0772 disclosed?
Is CVE-2016-0772 actively exploited?
What is the CVSS score of CVE-2016-0772?
How do I remediate CVE-2016-0772?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2016-0772
Is Your Infrastructure Affected by CVE-2016-0772?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.