Back
CVE-2013-7440
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,…
Medium5.9EPSS 1.9%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 1.9% · top 21% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.9.
Weakness
Affected products
n/a
- affected n/a
References (7)
- [oss-security] 20150518 CVE request: ssl.match_hostname(): sub string wildcard should not match IDNA prefix (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2016:1166 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=1224999 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://hg.python.org/cpython/rev/10d0edadbcdd (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://bugs.python.org/issue17997 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 74707 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- [oss-security] 20150521 Re: CVE request: ssl.match_hostname(): sub string wildcard should not match IDNA prefix (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2013-7440)Record last updated .