CVE-2016-0772: 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...
Medium CVSS 6.5
- CVE id
- CVE-2016-0772
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
<= 2.7.11 | after 2.7.11 |
How to fix it
Upgrade Python to a release newer than 2.7.11.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
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."
References
- CVE-2016-0772 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2016-0772
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=1303647
- Web: https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-5
- Web: https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-2
- Web: https://hg.python.org/cpython/raw-file/v2.7.12/Misc/NEWS
- Web: https://hg.python.org/cpython/rev/b3ce713fb9be
- Web: https://hg.python.org/cpython/rev/d590114c2394
- Web: https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html
- Web: https://security.gentoo.org/glsa/201701-18
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=1303647
- Web: https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-5
- Web: https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-2
- Web: https://hg.python.org/cpython/raw-file/v2.7.12/Misc/NEWS
- Web: https://hg.python.org/cpython/rev/b3ce713fb9be
- Web: https://hg.python.org/cpython/rev/d590114c2394
- Web: https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html
- Web: https://security.gentoo.org/glsa/201701-18
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.