CVE-2013-7440

NameCVE-2013-7440
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium (attack range: remote)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python2.7 (PTS)jessie2.7.9-2+deb8u1fixed
jessie (security)2.7.9-2+deb8u5fixed
stretch (security), stretch2.7.13-2+deb9u3fixed
buster2.7.16-2fixed
bullseye, sid2.7.16-4fixed
python3.4 (PTS)jessie3.4.2-1fixed
jessie (security)3.4.2-1+deb8u7fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python2.5source(unstable)(unfixed)medium
python2.6source(unstable)(unfixed)medium
python2.7source(unstable)2.7.9-1medium
python3.1source(unstable)(unfixed)medium
python3.2source(unstable)(unfixed)medium
python3.3source(unstable)3.3.3-1medium
python3.4source(unstable)3.4~b1-4medium

Notes

[wheezy] - python3.2 <no-dsa> (Minor issue, too intrusive to backport)
[squeeze] - python3.1 <no-dsa> (Minor issue)
[wheezy] - python2.7 <no-dsa> (Minor issue, too intrusive to backport)
[wheezy] - python2.6 <no-dsa> (Minor issue, too intrusive to backport)
[squeeze] - python2.6 <no-dsa> (Minor issue)
[squeeze] - python2.5 <no-dsa> (Minor issue)
https://bugs.python.org/issue17997#msg194950
https://hg.python.org/cpython/rev/10d0edadbcdd
The CVE is only about refusing multiple wildcards. Backporting that part only is not so difficult.

Search for package or bug name: Reporting problems