The ssl.match_hostname function in CPython (aka Python) before 2.7.9 and 3.x before 3.3.3…
Priority LOW 30CWE-19Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 10 fixed, 8 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
EPSS 0.01876 79th percentileScored 2026-11-07
Fix Partial Red Hat: 1 advisoryRed Hat: 10 fixed, 8 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 26
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | up to 2.7.8 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* | 3.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* | 3.0.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:* | 3.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* | 3.1.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* | 3.1.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* | 3.1.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:* | 3.1.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:* | 3.1.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.1.2150:*:*:*:*:*:x64:* | 3.1.2150 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions up to 2.7.8 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* Versions 3.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* Versions 3.0.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:* Versions 3.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* Versions 3.1.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* Versions 3.1.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* Versions 3.1.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:* Versions 3.1.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:* Versions 3.1.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.1.2150:*:*:*:*:*:x64:* Versions 3.1.2150 Vulnerable ·python-pillow
Show 16 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:* | 3.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:* | 3.2 alpha | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:* | 3.2.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:* | 3.2.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:* | 3.2.2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:* | 3.2.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:* | 3.2.4 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:* | 3.2.5 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.6:*:*:*:*:*:*:* | 3.2.6 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.2.2150:*:*:*:*:*:*:* | 3.2.2150 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3:*:*:*:*:*:*:* | 3.3 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3:beta2:*:*:*:*:*:* | 3.3 beta2 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:* | 3.3.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:* | 3.3.1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.1:rc1:*:*:*:*:*:* | 3.3.1 rc1 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:* | 3.3.2 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:* Versions 3.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:* Versions 3.2 alpha Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:* Versions 3.2.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:* Versions 3.2.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:* Versions 3.2.2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:* Versions 3.2.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:* Versions 3.2.4 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:* Versions 3.2.5 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.6:*:*:*:*:*:*:* Versions 3.2.6 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.2.2150:*:*:*:*:*:*:* Versions 3.2.2150 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3:*:*:*:*:*:*:* Versions 3.3 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3:beta2:*:*:*:*:*:* Versions 3.3 beta2 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:* Versions 3.3.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:* Versions 3.3.1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.1:rc1:*:*:*:*:*:* Versions 3.3.1 rc1 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:* Versions 3.3.2 Vulnerable ·python-pillow
Remediation
Red Hat 1 advisory
- RHSA-2016:1166 Released 2016-05-31 · Red Hat rating Moderatepython27 security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) python27-1.1-25.el6, python27-PyYAML-3.10-14.el6, python27-numpy-1:1.7.1-10.el6 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) python27-1.1-25.el7, python27-PyYAML-3.10-14.el7, python27-numpy-1:1.7.1-10.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) python27-1.1-25.el6, python27-PyYAML-3.10-14.el6, python27-numpy-1:1.7.1-10.el6 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) python27-1.1-25.el6, python27-PyYAML-3.10-14.el6, python27-numpy-1:1.7.1-10.el6 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) python27-1.1-25.el7, python27-PyYAML-3.10-14.el7, python27-numpy-1:1.7.1-10.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) python27-1.1-25.el7, python27-PyYAML-3.10-14.el7, python27-numpy-1:1.7.1-10.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) python27-1.1-25.el6, python27-PyYAML-3.10-14.el6, python27-numpy-1:1.7.1-10.el6 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) python27-1.1-25.el7, python27-PyYAML-3.10-14.el7, python27-numpy-1:1.7.1-10.el7 +17
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux OpenStack Platform 6 (Juno) | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Enterprise 2 | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat Storage 2 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 6.0 | Fixed | — |
| Red Hat Satellite Capsule 6.0 | Fixed | — |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2016:1166 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2016:1166 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) | Fixed | RHSA-2016:1166 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) | Fixed | RHSA-2016:1166 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) | Fixed | RHSA-2016:1166 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) | Fixed | RHSA-2016:1166 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2016:1166 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2016:1166 |
Not affected: 14 products
- Red Hat Ceph Storage 1.1
- Red Hat Ceph Storage 1.2
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse)
- Red Hat Enterprise MRG 2
- Red Hat Satellite 6
- Red Hat Satellite 6.0
- Red Hat Satellite 6.0 - Optional
- Red Hat Satellite Capsule 6.0
- Red Hat Software Collections
- Red Hat Storage 3
- Red Hat Subscription Asset Manager
Timeline
- 2026-10-02 Threatist record created from CVE-2013-7440
- 2026-10-03 Alias added: GHSA-v6fx-m8cj-52v3
References
Advisory 1
Other 5
- [oss-security] 20150518 CVE request: ssl.match_hostname(): sub string wildcard should not match IDNA prefix
- https://bugzilla.redhat.com/show_bug.cgi?id=1224999
- https://hg.python.org/cpython/rev/10d0edadbcdd
- https://bugs.python.org/issue17997
- [oss-security] 20150521 Re: CVE request: ssl.match_hostname(): sub string wildcard should not match IDNA prefix
More python-pillow Python vulnerabilities
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
- TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
- TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
- TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
Sources
- CVE-2013-7440 · CVE Program
- CVE-2013-7440 · NVD
- FIRST EPSS
- GHSA-v6fx-m8cj-52v3 · GitHub Advisory Database · CC BY 4.0
- CVE-2013-7440 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences