CVE-2013-7440
Summary
| CVE | CVE-2013-7440 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2016-06-07 18:59:00 UTC |
| Updated | 2026-05-06 22:30:45 UTC |
| Description | 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. |
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
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.0 | [email protected] | Primary | 5.9 | MEDIUM | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| 2.0 | [email protected] | Primary | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
HighAvailability
NoneCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
MediumAuthentication
NoneConfidentiality
NoneIntegrity
PartialAvailability
NoneAV:N/AC:M/Au:N/C:N/I:P/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| 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
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.