CVE-2013-1753: High severity Python Python vulnerability
It was reported [1] that the XMLRPC client library in Python is the only stdlib module that has a gzip decompression handler for compressed HTTP streams. The gzipdecode() function decompresses HTTP bodies that are compressed and send with Accept-Encoding: x-gzip. If an XMLRPC program written in python were to contact a malicious server which responded with a specially-crafted HTTP response, it could possibly result in a denial of service of the client (memory exhaustion).
A proposed patch [2] is available, but nothing has been committed or released as there seems to still be some discussion on other enhancements to the patch.
[1] http://bugs.python.org/issue16043 [2] http://bugs.python.org/file28796/xmlrpcgzip27.patch
Other sources
The gzipdecode function in the xmlrpc client library in Python 3.4 and earlier allows remote attackers to cause a denial of service (memory consumption) via a crafted HTTP request.
— 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.3.7 - Upgrade
Upgrade
redhat/pythonto a version that resolves this vulnerability.Fixed in 3.4.3 - Upgrade
Upgrade
debian/python2.7to a version that resolves this vulnerability.Fixed in 2.7.9-1 - Upgrade
Upgrade
debian/python3.4to a version that resolves this vulnerability.Fixed in 3.4.2-4
Event History
Frequently Asked Questions
What is CVE-2013-1753?
CVE-2013-1753 is a vulnerability in the gzip_decode function in the xmlrpc client library in Python 3.4 and earlier.
How does CVE-2013-1753 impact Python?
CVE-2013-1753 allows remote attackers to cause a denial of service (memory consumption) via a crafted HTTP request.
Which versions of Python are affected by CVE-2013-1753?
Python versions 2.7.0 to 2.7.9, 3.2.0 to 3.2.6, 3.3.0 to 3.3.6, and 3.4.0 to 3.4.3 are affected by CVE-2013-1753.
What is the severity of CVE-2013-1753?
CVE-2013-1753 has a severity rating of 7.5 (high).
How can I fix CVE-2013-1753?
It is recommended to upgrade to a patched version of Python that addresses this vulnerability.