REDHAT-BUG-1303647: Medium severity Python Software Foundation smtplib 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.

Affected Software

1 affected component
Python Software Foundation smtplib

Event History

Feb 1, 2016
Data Sourced
via Red Hat·03:04 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Clients using smtplib that connect to SMTP servers through a malicious man-in-the-middle and rely on SMTP.starttls() without explicitly checking its response code may be exposed.

2

What must an attacker be able to do to exploit it?

An attacker needs a man-in-the-middle position between the client and SMTP server, allowing them to interfere with the server's response to the explicit STARTTLS request.

3

How can applications reduce risk if they cannot update immediately?

Ensure client code explicitly checks the response code from SMTP.starttls() and treats a response other than 220 as a failure rather than continuing without TLS.

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