Vulnerabilities · 2016 · Python
CVE-2016-0772
Python vulnerability
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."
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- hg.python.org/cpython/rev/b3ce713fb9be · Patch
- hg.python.org/cpython/rev/d590114c2394 · Patch
- bugzilla.redhat.com/show_bug.cgi?id=1303647 · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- rhn.redhat.com/errata/RHSA-2016-1626.html
- rhn.redhat.com/errata/RHSA-2016-1627.html
- rhn.redhat.com/errata/RHSA-2016-1628.html
- rhn.redhat.com/errata/RHSA-2016-1629.html
- nvd.nist.gov/vuln/detail/CVE-2016-0772
- cve.org/CVERecord?id=CVE-2016-0772
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.