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 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."
What to do
Likely to be exploited: EPSS gives a 15% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | python2.7 | Fixed | 2.7.12-1ubuntu0~16.04.1 | UBUNTU-CVE-2016-0772 |
| Ubuntu 16.04 | python3.5 | Fixed | 3.5.2-2ubuntu0~16.04.1 | UBUNTU-CVE-2016-0772 |
| Ubuntu 14.04 | python2.7 | Fixed | 2.7.6-8ubuntu0.3 | UBUNTU-CVE-2016-0772 |
| Ubuntu 14.04 | python3.4 | Fixed | 3.4.3-1ubuntu1~14.04.5 | UBUNTU-CVE-2016-0772 |
| Ubuntu 14.04 | python3.5 | Fixed | 3.5.2-2ubuntu0~16.04.4~14.04.1 | UBUNTU-CVE-2016-0772 |
| Red Hat Enterprise Linux 7 | python | Fixed | 0:2.7.5-38.el7_2 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 7 | python-debug | Fixed | 0:2.7.5-38.el7_2 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 7 | python-devel | Fixed | 0:2.7.5-38.el7_2 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 7 | python-libs | Fixed | 0:2.7.5-38.el7_2 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 7 | python-test | Fixed | 0:2.7.5-38.el7_2 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 7 | python-tools | Fixed | 0:2.7.5-38.el7_2 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 7 | tkinter | Fixed | 0:2.7.5-38.el7_2 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 6 | python | Fixed | 0:2.6.6-66.el6_8 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 6 | python-devel | Fixed | 0:2.6.6-66.el6_8 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 6 | python-libs | Fixed | 0:2.6.6-66.el6_8 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 6 | python-test | Fixed | 0:2.6.6-66.el6_8 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 6 | python-tools | Fixed | 0:2.6.6-66.el6_8 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 6 | tkinter | Fixed | 0:2.6.6-66.el6_8 | RHSA-2016:1626 |
| Red Hat Enterprise Linux 5 | python | Will not fix Will not fix |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://rhn.redhat.com/errata/RHSA-2016-1630.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-1627.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-1629.html (vendor-advisory)
- https://security.gentoo.org/glsa/201701-18 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-1628.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-1626.html (vendor-advisory)
References
- https://hg.python.org/cpython/rev/d590114c2394
- http://www.splunk.com/view/SP-CAAAPUE
- http://rhn.redhat.com/errata/RHSA-2016-1630.html
- http://rhn.redhat.com/errata/RHSA-2016-1627.html
- https://hg.python.org/cpython/rev/b3ce713fb9be
- http://rhn.redhat.com/errata/RHSA-2016-1629.html
- http://www.splunk.com/view/SP-CAAAPSV
- https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1303647
- https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-5
- http://www.openwall.com/lists/oss-security/2016/06/14/9
- https://hg.python.org/cpython/raw-file/v2.7.12/Misc/NEWS
- https://security.gentoo.org/glsa/201701-18
- https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-2
- http://www.securityfocus.com/bid/91225
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.