Input validation error in Python - CVE-2013-4238

 

Input validation error in Python - CVE-2013-4238

Published: October 25, 2019 / Updated: June 3, 2025


Vulnerability identifier: #VU110148
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2013-4238
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Python.org
Affected software:
Python

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to corrupt data.

The ssl.match_hostname function in the SSL module in Python 2.6 through 3.4 does not properly handle a '' 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.


How to mitigate CVE-2013-4238

Install update from vendor's website.

Sources