This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [security][3.3] Backport smtplib fix for TLS stripping vulnerability, CVE-2016-0772
Type: security Stage: resolved
Components: Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, ned.deily, vstinner
Priority: Keywords:

Created on 2017-06-07 08:36 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 225 merged vstinner, 2017-06-07 08:36
Messages (4)
msg295319 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-06-07 08:36
Attached pull request backports a fix for this security vulnerability:
http://python-security.readthedocs.io/vuln/cve-2016-0772_smtplib_tls_stripping.html

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

Reported by: Tin (Team Oststrom)

Python 2.7, 3.4, 3.5 and 3.6 are already safe.
msg295320 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-06-07 08:37
PEP 398: Python 3.3 Release Schedule

Python 3.3 branch end of support is expected to be at 2017-09-29, in 4 months.
msg298620 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2017-07-19 00:44
New changeset 3625f7fd11679ecb390ffa58ef36d487acc8159b by Ned Deily (Victor Stinner) in branch '3.3':
[3.3] bpo-30585: [security] raise an error when STARTTLS fails (#225)
https://github.com/python/cpython/commit/3625f7fd11679ecb390ffa58ef36d487acc8159b
msg298621 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2017-07-19 00:46
Merged for release in 3.3.7rc1
History
Date User Action Args
2022-04-11 14:58:47adminsetgithub: 74770
2017-07-19 00:46:42ned.deilysetstatus: open -> closed
priority: release blocker ->
messages: + msg298621

resolution: fixed
stage: resolved
2017-07-19 00:44:40ned.deilysetnosy: + ned.deily
messages: + msg298620
2017-06-07 08:37:43vstinnersetassignee: georg.brandl
messages: + msg295320
2017-06-07 08:36:32vstinnercreate