CVE-2013-7440 json
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,…
published 10y ago modified 4mo ago also EUVD-2013-7204
- cvss
- 5.9
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
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.
Patch / fix
- python2.7 Debian 11 2.7.9-1
debian advisories DEBIAN-CVE-2013-7440
- v8 satellite capsule 6.0, satellite 6.0 1:3.14.5.10-9.el6sat
- v8 satellite capsule 6.0, satellite 6.0 1:3.14.5.10-11.el7sat
- foreman satellite 6.0 1.6.0.44-1.el6sat
- foreman satellite 6.0 1.6.0.44-1.el7sat
- katello satellite 6.0 1.5.0-30.el6sat
- katello satellite 6.0 1.5.0-30.el7sat
- mongodb satellite capsule 6.0, satellite 6.0 2.4.6-2.el6sat
- mongodb satellite capsule 6.0, satellite 6.0 2.4.9-3.el7sat
red hat advisories RHEA-2014:1175RHSA-2016:1166
- python-setuptools SLED 11 SP4, SLED 11 SP3, SLE Software Development Kit 11 SP4 +1 more 0.6c11-6.1
- python-setuptools SLE Software Development Kit 12, SLE Module for Public Cloud 12, SLE Module for Containers 12 +2 more 1.1.7-7.1
suse advisories SUSE-SU-2015:1651-1SUSE-SU-2015:1298-1
Is CVE-2013-7440 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2013-7440 updated cvss 4.0
python: wildcard matching rules do not follow RFC 6125
-
Red Hat Enterprise Linux 7 bzr, python-virtualenvaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) python-pymongoaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux OpenStack Platform 6 (Juno) python-pip, python-pymongoaffected: no fix available, no fix planned “Will not fix”
-
Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) python-bson, python-pymongo, python-pymongo-gridfsaffected: no fix available “Fix deferred”
-
Red Hat OpenShift Enterprise 2 python-pymongo, python-virtualenv, python27-python-pip Red Hat OpenStack Platform 4 python-pymongo, python-backports-ssl_match_hostname Red Hat Software Collections python33-python, python33-python-bson, python33-python-libs, python33-python-test, python33-python-tools, rh-python34-python-pip, +5 more Red Hat Storage 2 python-backports-ssl_match_hostnameaffected: no fix planned “Will not fix”
-
Red Hat Satellite 6.0 python-httplib2 0.7.2-1.el6, python-httplib2 0.6.0-6.el7sat Red Hat Satellite Capsule 6.0 python-httplib2 0.7.2-1.el6, python-httplib2 0.6.0-6.el7satfixed: vendor fix RHEA-2014:1175
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) python27 1.1-25.el6, python27-numpy 1.7.1-10.el6, python27-PyYAML 3.10-14.el6, python27-runtime 1.1-25.el6, python27-scipy 0.12.1-3.el6, python27-python 2.7.8-16.el6, +12 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) python27 1.1-25.el7, python27-numpy 1.7.1-10.el7, python27-PyYAML 3.10-14.el7, python27-runtime 1.1-25.el7, python27-scipy 0.12.1-4.el7, python27-python 2.7.8-14.el7, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) python27 1.1-25.el6, python27-numpy 1.7.1-10.el6, python27-PyYAML 3.10-14.el6, python27-runtime 1.1-25.el6, python27-scipy 0.12.1-3.el6, python27-python 2.7.8-16.el6, +12 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) python27 1.1-25.el6, python27-numpy 1.7.1-10.el6, python27-PyYAML 3.10-14.el6, python27-runtime 1.1-25.el6, python27-scipy 0.12.1-3.el6, python27-python 2.7.8-16.el6, +12 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) python27 1.1-25.el7, python27-numpy 1.7.1-10.el7, python27-PyYAML 3.10-14.el7, python27-runtime 1.1-25.el7, python27-scipy 0.12.1-4.el7, python27-python 2.7.8-14.el7, +11 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) python27 1.1-25.el7, python27-numpy 1.7.1-10.el7, python27-PyYAML 3.10-14.el7, python27-runtime 1.1-25.el7, python27-scipy 0.12.1-4.el7, python27-python 2.7.8-14.el7, +11 morefixed: vendor fix RHSA-2016:1166
+2 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) python27 1.1-25.el6, python27-numpy 1.7.1-10.el6, python27-PyYAML 3.10-14.el6, python27-runtime 1.1-25.el6, python27-scipy 0.12.1-3.el6, python27-python 2.7.8-16.el6, +12 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) python27 1.1-25.el7, python27-numpy 1.7.1-10.el7, python27-PyYAML 3.10-14.el7, python27-runtime 1.1-25.el7, python27-scipy 0.12.1-4.el7, python27-python 2.7.8-14.el7, +11 more -
Red Hat Ceph Storage 1.1 python-backports-ssl_match_hostname Red Hat Ceph Storage 1.2 python-backports-ssl_match_hostname Red Hat Enterprise Linux 5 python, python-setuptools Red Hat Enterprise Linux 6 bzr, python, tkinter, python-libs, python-test, python-tools, +2 more Red Hat Enterprise Linux 7 python, tkinter, python-libs, python-test, python-tools, python-setuptools, +1 more Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) python-backports-ssl_match_hostnamenot affected: vulnerable code not present
+8 more productsfewer
Red Hat Enterprise MRG 2 pymongo, python-bson Red Hat Satellite 6 python-requests, python3-requests Red Hat Satellite 6.0 jansi 1.9-7.el7, bsf 2.4.0-19.el7, cglib 2.2-18.el7, guava 13.0-6.el7, xbean 3.13-6.el7, hawtjni 1.6-9.el7, +757 more Red Hat Satellite 6.0 - Optional ant-jmf 1.9.2-9.el7, ant-jsch 1.9.2-9.el7, ant-antlr 1.9.2-9.el7, ant-swing 1.9.2-9.el7, ant-manual 1.9.2-9.el7, ant-javadoc 1.9.2-9.el7, +21 more Red Hat Satellite Capsule 6.0 hiera 1.3.1-2.el7, hiera 1.0.0-3.el6_4, gofer 1.3.0-1.el6sat, gofer 1.3.0-1.el7sat, qpid-cpp 0.22-42.el6, qpid-cpp 0.22-42.el7, +217 more Red Hat Software Collections rh-python34-python, rh-python34-python-bson, rh-python34-python-libs, rh-python34-python-test, rh-python34-python-tools, python27-python-setuptools, +5 more Red Hat Storage 3 python-backports-ssl_match_hostname Red Hat Subscription Asset Manager pymongo
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.88% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
- Weakness
-
- CWE-19 Data Processing Errors
References
-
access.redhat.com
/errata/RHSA-2016:1166
vendor-advisory
-
seclists.org
/oss-sec/2015/q2/483
mailing-list
- bugzilla.redhat.com /show_bug.cgi?id=1224999
- hg.python.org /cpython/rev/10d0edadbcdd
- bugs.python.org /issue17997
-
securityfocus.com
/bid/74707
vdb-entry
-
seclists.org
/oss-sec/2015/q2/523
mailing-list
Sources
- CVE List CVE-2013-7440
- NVD CVE-2013-7440
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.