Live threats

All CVEs / Python

CVE-2013-7440Python

Medium 5.9 No auth needed

Priority
51
CVSS 3.0
5.9
EPSS
1.9%
probability of exploitation in 30 days · percentile 80
Auth required
No
Published
Jun 7, 2016
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-19
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

The ssl.match_hostname function in CPython (aka Python) before 2.7.9 and 3.x before 3.3.3 does not properly handle wildcards in hostnames, which might allow man-in-the-middle attackers to spoof servers via a crafted certificate.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
pythonpython≤ 2.7.8
pythonpython3.0
pythonpython3.0.1
pythonpython3.1
pythonpython3.1.1
pythonpython3.1.2
pythonpython3.1.3
pythonpython3.1.4
pythonpython3.1.5
pythonpython3.1.2150
pythonpython3.2
pythonpython3.2
pythonpython3.2.0
pythonpython3.2.1
pythonpython3.2.2
pythonpython3.2.3
pythonpython3.2.4
pythonpython3.2.5
pythonpython3.2.6
pythonpython3.2.2150
pythonpython3.3
pythonpython3.3
pythonpython3.3.0
pythonpython3.3.1
pythonpython3.3.1
pythonpython3.3.2

Official sources

References

Links published by the sources. Open them with care.