CVE-2016-0772: Medium severity Python Python vulnerability

Published Feb 1, 2016
·
Updated

A vulnerability in smtplib allowing MITM attacker to perform a startTLS stripping attack. smtplib does not seem to raise an exception when the remote end (smtp server) is capable of negotiating starttls but fails to respond with 220 (ok) to an explicit call of SMTP.starttls(). This may allow a malicious MITM to perform a startTLS stripping attack if the client code does not explicitly check the response code for startTLS.

Other sources

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."

— MITRE

Affected Software

35 affected componentsFixes available
Python Python=3.5.0
Python Python=3.5.1
Python Python=3.0
Python Python=3.0.1
Python Python=3.1.0
Python Python=3.1.1
Python Python=3.1.2
Python Python=3.1.3
Python Python=3.1.4
Python Python=3.1.5
Python Python=3.2.0
Python Python=3.2.1
Python Python=3.2.2
Python Python=3.2.3
Python Python=3.2.4
Python Python=3.2.5
Python Python=3.2.6
Python Python=3.3.0
Python Python=3.3.1
Python Python=3.3.2
Python Python=3.3.3
Python Python=3.3.4
Python Python=3.3.5
Python Python=3.3.6
Python Python=3.4.0
Python Python=3.4.1
Python Python=3.4.2
Python Python=3.4.3
Python Python=3.4.4
Python Python<=2.7.11
debian/python2.7<2.7.12~rc1-1
2.7.12~rc1-1
debian/python2.7
2.7.3-6+deb7u32.7.9-2+deb8u12.7.12~rc1-1
debian/python3.2
3.2.3-7+deb7u1
debian/python3.4
3.4.2-1+deb8u2
debian/python3.5
3.5.2~rc1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.12~rc1-1
  2. Upgrade

    Upgrade debian/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.3-6+deb7u3Fixed in 2.7.9-2+deb8u1Fixed in 2.7.12~rc1-1
  3. Upgrade

    Upgrade debian/python3.2 to a version that resolves this vulnerability.

    Fixed in 3.2.3-7+deb7u1
  4. Upgrade

    Upgrade debian/python3.4 to a version that resolves this vulnerability.

    Fixed in 3.4.2-1+deb8u2
  5. Upgrade

    Upgrade debian/python3.5 to a version that resolves this vulnerability.

    Fixed in 3.5.2~rc1-1

Event History

Feb 1, 2016
Data Sourced
03:04 PM
DescriptionSeverityAffected Software
Sep 2, 2016
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
02:59 PM
RemedyWeakness
Data Sourced
via OSV·02:59 PM
DescriptionSeverity
Data Sourced
via NVD·02:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 29, 2019
Data Sourced
via Red Hat·01:43 PM
DescriptionSeverityAffected Software
Oct 21, 2026
Data Sourced
via Microsoft·08:06 AM
DescriptionSeverityWeakness
Nov 24, 2026
Withdrawn
via OSV·04:28 AM
Data Sourced
via OSV·04:28 AM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2016-0772?

CVE-2016-0772 is rated as a medium severity vulnerability due to its potential exploitation in a Man-in-the-Middle attack.

2

How do I fix CVE-2016-0772?

To fix CVE-2016-0772, update to a version of Python that is above 3.5.1 or implement strict TLS validation.

3

Which versions of Python are affected by CVE-2016-0772?

CVE-2016-0772 affects Python versions 2.7.11 and earlier, as well as 3.0 to 3.5.0 inclusive.

4

What kind of attack can CVE-2016-0772 enable?

CVE-2016-0772 can enable a StartTLS stripping attack, allowing attackers to downgrade a secure connection to an unencrypted one.

5

Is there any workaround for the vulnerability identified in CVE-2016-0772?

While updating is the recommended solution, using alternative secure connection methods without relying on StartTLS can serve as a temporary workaround.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203