Skip to content
Noroxi
CVE-2016-0772· NVD / CVE Program· CNA redhat

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 f

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

MediumCVSS 6.5 · v3.0—Proof of concept Fix available
Published
Sep 2, 2016
Updated
Jun 16, 2026
EPSS
14.5% · 97th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

30

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
4 / 30 · 14.5%

Affected systems

VendorProduct
pythonpython

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • python pythonup to 2.7.11 inclusive
  • python python3.0
  • python python3.0.1
  • python python3.1.0
  • python python3.1.1
  • python python3.1.2
  • python python3.1.3
  • python python3.1.4
  • python python3.1.5
  • python python3.2.0
  • python python3.2.1
  • python python3.2.2
  • python python3.2.3
  • python python3.2.4
  • python python3.2.5
  • python python3.2.6
  • python python3.3.0
  • python python3.3.1
  • python python3.3.2
  • python python3.3.3

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:11python2.7before 2.7.12~rc1-12.7.12~rc1-1
Debian:7python2.7before 2.7.3-6+deb7u32.7.3-6+deb7u3
Debian:7python3.2before 3.2.3-7+deb7u13.2.3-7+deb7u1
Debian:8python3.4before 3.4.2-1+deb8u23.4.2-1+deb8u2
openSUSE:Leap 15.1python3before 3.6.10-lp151.6.7.13.6.10-lp151.6.7.1
openSUSE:Leap 15.1python3-basebefore 3.6.10-lp151.6.7.13.6.10-lp151.6.7.1
openSUSE:Tumbleweedpythonbefore 2.7.12-1.52.7.12-1.5
openSUSE:Tumbleweedpython-basebefore 2.7.12-1.42.7.12-1.4
openSUSE:Tumbleweedpython-docbefore 2.7.12-1.32.7.12-1.3
openSUSE:Tumbleweedpython36before 3.6.15-1.13.6.15-1.1
Red Hat:enterprise_linux:6::clientpythonbefore 0:2.6.6-66.el6_80:2.6.6-66.el6_8
Red Hat:enterprise_linux:6::clientpython-debuginfobefore 0:2.6.6-66.el6_80:2.6.6-66.el6_8
Red Hat:enterprise_linux:6::clientpython-develbefore 0:2.6.6-66.el6_80:2.6.6-66.el6_8
Red Hat:enterprise_linux:6::clientpython-libsbefore 0:2.6.6-66.el6_80:2.6.6-66.el6_8
Red Hat:enterprise_linux:6::clientpython-testbefore 0:2.6.6-66.el6_80:2.6.6-66.el6_8
Red Hat:enterprise_linux:6::clientpython-toolsbefore 0:2.6.6-66.el6_80:2.6.6-66.el6_8
Red Hat:enterprise_linux:6::clienttkinterbefore 0:2.6.6-66.el6_80:2.6.6-66.el6_8
Red Hat:enterprise_linux:7::clientpythonbefore 0:2.7.5-38.el7_20:2.7.5-38.el7_2
Red Hat:enterprise_linux:7::clientpython-debugbefore 0:2.7.5-38.el7_20:2.7.5-38.el7_2
Red Hat:enterprise_linux:7::clientpython-debuginfobefore 0:2.7.5-38.el7_20:2.7.5-38.el7_2
Red Hat:enterprise_linux:7::clientpython-develbefore 0:2.7.5-38.el7_20:2.7.5-38.el7_2
Red Hat:enterprise_linux:7::clientpython-libsbefore 0:2.7.5-38.el7_20:2.7.5-38.el7_2
Red Hat:enterprise_linux:7::clientpython-testbefore 0:2.7.5-38.el7_20:2.7.5-38.el7_2
Red Hat:enterprise_linux:7::clientpython-toolsbefore 0:2.7.5-38.el7_20:2.7.5-38.el7_2

+74

Other highest-scoring records for the same primary product.

  • CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all
    47Plan
  • CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot
    47Plan
  • CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth
    46Plan
  • CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al
    46Plan
  • CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C
    45Plan
  • CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.
    42Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:python2.72.7.12~rc1-1 · Debian:11Package registry (OSV)
debian:python3.23.2.3-7+deb7u1 · Debian:7Package registry (OSV)
debian:python3.43.4.2-1+deb8u2 · Debian:8Package registry (OSV)
opensuse:python2.7.12-1.5 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python-base2.7.12-1.4 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python-doc2.7.12-1.3 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python33.6.10-lp151.6.7.1 · openSUSE:Leap 15.1Package registry (OSV)
opensuse:python3-base3.6.10-lp151.6.7.1 · openSUSE:Leap 15.1Package registry (OSV)
opensuse:python363.6.15-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:python0:2.6.6-66.el6_8 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:python-debug0:2.7.5-38.el7_2 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:python-debuginfo0:2.6.6-66.el6_8 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:python-devel0:2.6.6-66.el6_8 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:python-libs0:2.6.6-66.el6_8 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:python-test0:2.6.6-66.el6_8 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:python-tools0:2.6.6-66.el6_8 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:rh-python35-python0:3.5.1-9.el7 · Red Hat:rhel_software_collections:2::el7Package registry (OSV)
red hat:rh-python35-python-debug0:3.5.1-9.el7 · Red Hat:rhel_software_collections:2::el7Package registry (OSV)
red hat:rh-python35-python-debuginfo0:3.5.1-9.el7 · Red Hat:rhel_software_collections:2::el7Package registry (OSV)
red hat:rh-python35-python-devel0:3.5.1-9.el7 · Red Hat:rhel_software_collections:2::el7Package registry (OSV)
red hat:tkinter0:2.6.6-66.el6_8 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
suse:python2.7.9-24.1 · SUSE:Linux Enterprise Desktop 12 SP1Package registry (OSV)
suse:python-base2.7.9-24.2 · SUSE:Linux Enterprise Desktop 12 SP1Package registry (OSV)
suse:python-doc2.7.9-24.4 · SUSE:Linux Enterprise Server 12 SP1Package registry (OSV)
suse:python33.4.5-17.1 · SUSE:Linux Enterprise Desktop 12 SP1Package registry (OSV)
suse:python3-base3.4.5-17.1 · SUSE:Linux Enterprise Desktop 12 SP1Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Exploit-DB entry ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Exploit-DB entrylocal2016-07-03

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. First PoC-61 d
  2. Published
  3. TodaySep 30, 2026+3680 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
low · data can be read
Integrity
high · data or configuration can be modified
Availability
none
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
High
Availability impact
None

CVSS vector

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records