CVE-2014-9365: Medium severity Python Python vulnerability
Alex Gaynor reports:
""" When Python's standard library HTTP clients (httplib, urllib, urllib2, xmlrpclib) are used to access resources with HTTPS, by default the certificate is not checked against any trust store, nor is the hostname in the certificate checked against the requested host. It was possible to configure a trust root to be checked against, however there were no faculties for hostname checking.
This made MITM attacks against the HTTP clients trivial, and violated RFC 2818 (http://tools.ietf.org/html/rfc2818#section-3).
Python 2.7.9 has been issued to resolve this issue. It is also resolved in 3.4.3, which has not yet been released. """
CVE request: http://seclists.org/oss-sec/2014/q4/1022
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/Pythonto a version that resolves this vulnerability.Fixed in 2.7.9 - Upgrade
Upgrade
redhat/Pythonto a version that resolves this vulnerability.Fixed in 3.4.3 - Upgrade
Upgrade
CPython (Python)to a version that resolves this vulnerability.Fixed in 2.7.9 - Upgrade
Upgrade
CPython (Python)to a version that resolves this vulnerability.Fixed in 3.4.3
Event History
Frequently Asked Questions
What is the severity of CVE-2014-9365?
CVE-2014-9365 is considered a moderate severity vulnerability due to its potential to allow man-in-the-middle attacks.
How do I fix CVE-2014-9365?
To fix CVE-2014-9365, upgrade Python to version 2.7.9 or 3.4.3 or later.
Which Python versions are affected by CVE-2014-9365?
CVE-2014-9365 affects Python versions 2.x before 2.7.9 and 3.x before 3.4.3.
What is the impact of CVE-2014-9365?
The impact of CVE-2014-9365 is that HTTPS connections may be insecure, as certificate validation is not performed.
Is there a workaround for CVE-2014-9365?
There is no recommended workaround for CVE-2014-9365 other than upgrading to a secure version of Python.