Skip to content
Fencer Intel
medium 5.9

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 Fencer

Vendor 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-virtualenv
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) python-pymongo
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux OpenStack Platform 6 (Juno) python-pip, python-pymongo
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) python-bson, python-pymongo, python-pymongo-gridfs
    affected: 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_hostname
    affected: 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.el7sat
    fixed: 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 more
    +2 more products
    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
    fixed: vendor fix RHSA-2016:1166
  • 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_hostname
    +8 more products
    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
    not affected: vulnerable code not present

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

Sources

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.