CVE-2013-7440

Summary

CVECVE-2013-7440
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2016-06-07 18:59:00 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v3.0 5.9 MEDIUM from [email protected]

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

Problem Types: CWE-19 | n/a


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary5.9MEDIUMCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
2.0[email protected]Primary4.3AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

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

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
None

AV:N/AC:M/Au:N/C:N/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Python Python 3.0 All All All
Application Python Python 3.0.1 All All All
Application Python Python 3.1 All All All
Application Python Python 3.1.1 All All All
Application Python Python 3.1.2 All All All
Application Python Python 3.1.2150 All All All
Application Python Python 3.1.3 All All All
Application Python Python 3.1.4 All All All
Application Python Python 3.1.5 All All All
Application Python Python 3.2 All All All
Application Python Python 3.2 alpha All All
Application Python Python 3.2.0 All All All
Application Python Python 3.2.1 All All All
Application Python Python 3.2.2 All All All
Application Python Python 3.2.2150 All All All
Application Python Python 3.2.3 All All All
Application Python Python 3.2.4 All All All
Application Python Python 3.2.5 All All All
Application Python Python 3.2.6 All All All
Application Python Python 3.3 All All All
Application Python Python 3.3 beta2 All All
Application Python Python 3.3.0 All All All
Application Python Python 3.3.1 All All All
Application Python Python 3.3.1 rc1 All All
Application Python Python 3.3.2 All All All
Application Python Python All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Issue 17997: ssl.match_hostname(): sub string wildcard should not match IDNA prefix - Python tracker af854a3a-2127-422b-91ae-364da2661108 bugs.python.org
Python 'ssl.match_hostname()' Function Security Bypass Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
oss-sec: Re: CVE request: ssl.match_hostname(): sub string wildcard should not match IDNA prefix af854a3a-2127-422b-91ae-364da2661108 seclists.org
Bug 1224999 – CVE-2013-7440 python: wildcard matching rules do not follow RFC 6125 af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
oss-sec: CVE request: ssl.match_hostname(): sub string wildcard should not match IDNA prefix af854a3a-2127-422b-91ae-364da2661108 seclists.org
cpython: 10d0edadbcdd af854a3a-2127-422b-91ae-364da2661108 hg.python.org
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report