CWE
693
Advisory Published
CVE Published
Updated

CVE-2016-0772

First published: Mon Feb 01 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Python 2.7=3.5.0
Python 2.7=3.5.1
Python 2.7=3.0
Python 2.7=3.0.1
Python 2.7=3.1.0
Python 2.7=3.1.1
Python 2.7=3.1.2
Python 2.7=3.1.3
Python 2.7=3.1.4
Python 2.7=3.1.5
Python 2.7=3.2.0
Python 2.7=3.2.1
Python 2.7=3.2.2
Python 2.7=3.2.3
Python 2.7=3.2.4
Python 2.7=3.2.5
Python 2.7=3.2.6
Python 2.7=3.3.0
Python 2.7=3.3.1
Python 2.7=3.3.2
Python 2.7=3.3.3
Python 2.7=3.3.4
Python 2.7=3.3.5
Python 2.7=3.3.6
Python 2.7=3.4.0
Python 2.7=3.4.1
Python 2.7=3.4.2
Python 2.7=3.4.3
Python 2.7=3.4.4
Python 2.7<=2.7.11

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

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

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

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203