Vulnerabilities · 2013 · Python
CVE-2013-7440
Python vulnerability
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.
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- seclists.org/oss-sec/2015/q2/483
- seclists.org/oss-sec/2015/q2/523
- www.securityfocus.com/bid/74707
- access.redhat.com/errata/RHSA-2016:1166
- bugs.python.org/issue17997
- bugzilla.redhat.com/show_bug.cgi?id=1224999
- hg.python.org/cpython/rev/10d0edadbcdd
- nvd.nist.gov/vuln/detail/CVE-2013-7440
- cve.org/CVERecord?id=CVE-2013-7440
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.