CVE-2016-0772
Reported by redhat · Published September 2, 2016
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."
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| alpine/python-3.11 | alpine | 3.4.5-rc1, 3.3.7-rc1, 2.7.12-rc1 |
| python | DHI | 3.4.5-rc1, 3.3.7-rc1, 2.7.12-rc1 |
| alpine/python-3.15 | alpine | 3.4.5-rc1, 3.3.7-rc1, 2.7.12-rc1 |
| alpine/python-3.10 | alpine | 3.4.5-rc1, 3.3.7-rc1, 2.7.12-rc1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Aug 30, 2016 PoC Published (3 in total, the first dated here)
- Sep 2, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 5, 2026 Distribution Patch
- Mar 5, 2026 Security Advisory (5 in total, the first dated here)
- Oct 10, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-0772
vulnetix vdb fixes CVE-2016-0772
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-0772/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- RHSA-2016:1630 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:1627 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- RHSA-2016:1629 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- [debian-lts-announce] 20190207 [SECURITY] [DLA 1663-1] python3.4 security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- [oss-security] 20160614 Python CVE-2016-0772: smtplib StartTLS stripping attack mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- GLSA-201701-18 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- 91225 vdb-entryx_refsource_BID
- RHSA-2016:1628 vendor-advisoryx_refsource_REDHAT
- RHSA-2016:1626 vendor-advisoryx_refsource_REDHAT
- openSUSE-SU-2020:0086 vendor-advisoryx_refsource_SUSE