CVE-2013-4238

Summary

CVECVE-2013-4238
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2013-08-18 02:52:22 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionThe ssl.match_hostname function in the SSL module in Python 2.6 through 3.4 does not properly handle a '\0' character in a domain name in the Subject Alternative Name field of an X.509 certificate, which allows man-in-the-middle attackers to spoof arbitrary SSL servers via a crafted certificate issued by a legitimate Certification Authority, a related issue to CVE-2009-2408.

Risk And Classification

Primary CVSS: v2.0 4.3 from [email protected]

AV:N/AC:M/Au:N/C:N/I:P/A:N

Problem Types: CWE-20 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
None

AV:N/AC:M/Au:N/C:N/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 10.04 - lts All
Operating System Opensuse Opensuse 11.4 All All All
Operating System Opensuse Opensuse 12.2 All All All
Operating System Opensuse Opensuse 12.3 All All All
Application Python Python 2.6.1 All All All
Application Python Python 2.6.2 All All All
Application Python Python 2.6.2150 All All All
Application Python Python 2.6.3 All All All
Application Python Python 2.6.4 All All All
Application Python Python 2.6.5 All All All
Application Python Python 2.6.6 All All All
Application Python Python 2.6.6150 All All All
Application Python Python 2.6.7 All All All
Application Python Python 2.6.8 All All All
Application Python Python 2.7.1 All All All
Application Python Python 2.7.1 rc1 All All
Application Python Python 2.7.1150 All All All
Application Python Python 2.7.1150 All All All
Application Python Python 2.7.2 rc1 All All
Application Python Python 2.7.2150 All All All
Application Python Python 2.7.3 All All All
Application Python Python 3.0 All All All
Application Python Python 3.0.1 All All All
Application Python Python 3.1 All All All
Application Python Python 3.1.1 All All All
Application Python Python 3.1.2 All All All
Application Python Python 3.1.2150 All All All
Application Python Python 3.1.3 All All All
Application Python Python 3.1.4 All All All
Application Python Python 3.1.5 All All All
Application Python Python 3.2 All All All
Application Python Python 3.2 alpha All All
Application Python Python 3.2.2150 All All All
Application Python Python 3.2.3 All All All
Application Python Python 3.3 All All All
Application Python Python 3.3 beta2 All All
Application Python Python 3.4 alpha1 All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Debian -- Security Information -- DSA-2880-1 python2.7 af854a3a-2127-422b-91ae-364da2661108 www.debian.org
USN-1982-1: Python 2.6 vulnerability | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Vendor Advisory
openSUSE-SU-2013:1440-1: moderate: update for python af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Vendor Advisory
openSUSE-SU-2013:1439-1: moderate: update for python3 af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Vendor Advisory
openSUSE-SU-2013:1438-1: moderate: update for python af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Vendor Advisory
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
Bug 996381 – CVE-2013-4238 python: hostname check bypassing vulnerability in SSL module af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Patch
openSUSE-SU-2013:1437-1: moderate: update for python3 af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Vendor Advisory
[security-announce] openSUSE-SU-2020:0086-1: important: Security update af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org
Red Hat Customer Portal af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com
openSUSE-SU-2013:1463-1: moderate: update for python af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Vendor Advisory
openSUSE-SU-2013:1462-1: moderate: update for python3 af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Vendor Advisory
Full Disclosure: NEW: VMSA-2014-0012 - VMware vSphere product updates address security vulnerabilities af854a3a-2127-422b-91ae-364da2661108 seclists.org
Issue 18709: SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238) - Python tracker af854a3a-2127-422b-91ae-364da2661108 bugs.python.org Patch
VMSA-2014-0012 | United States af854a3a-2127-422b-91ae-364da2661108 www.vmware.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report