Vulnerabilities · 2014 · Python
CVE-2014-9365
Python vulnerability
The HTTP clients in the (1) httplib, (2) urllib, (3) urllib2, and (4) xmlrpclib libraries in CPython (aka Python) 2.x before 2.7.9 and 3.x before 3.4.3, when accessing an HTTPS URL, do not (a) check the certificate against a trust store or verify that the server hostname matches a domain name in the subject's (b) Common Name or (c) subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.
Affected products
Python, Mac Os X. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.python.org/dev/peps/pep-0476/ · Exploit
- bugs.python.org/issue22417 · Exploit
- lists.apple.com/archives/security-announce/2015/Aug/msg00001.html
- www.openwall.com/lists/oss-security/2014/12/11/1
- www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
- www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html
- www.securityfocus.com/bid/71639
- access.redhat.com/errata/RHSA-2016:1166
- nvd.nist.gov/vuln/detail/CVE-2014-9365
- cve.org/CVERecord?id=CVE-2014-9365
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.