CVE-2016-0772

medium
Published 2016-09-02 ยท Modified 2026-05-06
CVSS v3
6.5
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.5

Description

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

Predictions

Exploit likelihood
75%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-43500 local multiple
tintinweb ยท 2016-07-03

Python smtplib 2.7.11 / 3.4.4 / 3.5.1 - Man In The Middle StartTLS Stripping

Source code queued for fetch โ€” refresh in a moment.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Fixed 1 release
VersionStatusFixed in
bullseye Fixed 2.7.12~rc1-1

Application impact

VendorProductVersionsFixed
python pythonpython3.5.0
python pythonpython3.5.1
python pythonpython3.0
python pythonpython3.0.1
python pythonpython3.1.0
python pythonpython3.1.1
python pythonpython3.1.2
python pythonpython3.1.3
python pythonpython3.1.4
python pythonpython3.1.5
python pythonpython3.2.0
python pythonpython3.2.1
python pythonpython3.2.2
python pythonpython3.2.3
python pythonpython3.2.4
python pythonpython3.2.5
python pythonpython3.2.6
python pythonpython3.3.0
python pythonpython3.3.1
python pythonpython3.3.2
python pythonpython3.3.3
python pythonpython3.3.4
python pythonpython3.3.5
python pythonpython3.3.6
python pythonpython3.4.0
python pythonpython3.4.1
python pythonpython3.4.2
python pythonpython3.4.3
python pythonpython3.4.4
python pythonpython{"endIncluding":"2.7.11"}

References

CWEs

CWE-693

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.