CVE-2014-1912: Buffer Overflow
A vulnerability was reported [1] in Python's socket module, due to a boundary error within the sockrecvfrominto() function, which could be exploited to cause a buffer overflow. This could be used to crash a Python application that uses the socket.recvfrominfo() function or, possibly, execute arbitrary code with the permissions of the user running vulnerable Python code.
This vulnerable function, socket.recvfrominto(), was introduced in Python 2.5. Earlier versions are not affected by this flaw. This is fixed in upstream branches for version 2.7 [2] and version 3.3 [3].
[1] http://bugs.python.org/issue20246 [2] http://hg.python.org/cpython/rev/87673659d8f7 [3] http://hg.python.org/cpython/rev/7f176a45211f/
Other sources
Buffer overflow in the socket.recvfrominto function in Modules/socketmodule.c in Python 2.5 before 2.7.7, 3.x before 3.3.4, and 3.4.x before 3.4rc1 allows remote attackers to execute arbitrary code via a crafted string.
— 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.7 - Upgrade
Upgrade
redhat/pythonto a version that resolves this vulnerability.Fixed in 3.3.4 - Upgrade
Upgrade
redhat/pythonto a version that resolves this vulnerability.Fixed in 3.4.0 - Upgrade
Upgrade
debian/python2.7to a version that resolves this vulnerability.Fixed in 2.7.6-6 - Upgrade
Upgrade
debian/python2.6to a version that resolves this vulnerability.Fixed in 2.6.6-8+deb6u1 - Upgrade
Upgrade
debian/python2.7to a version that resolves this vulnerability.Fixed in 2.7.3-6+deb7u2Fixed in 2.7.6-6 - Upgrade
Upgrade
debian/python3.3to a version that resolves this vulnerability.Fixed in 3.3.5-1 - Upgrade
Upgrade
debian/python3.4to a version that resolves this vulnerability.Fixed in 3.4.0-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.7.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.3.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.4rc1
Event History
Frequently Asked Questions
What is the severity of CVE-2014-1912?
CVE-2014-1912 has been assigned a high severity rating due to its potential to allow remote code execution.
How do I fix CVE-2014-1912?
To fix CVE-2014-1912, upgrade Python to a version that is patched, such as 2.7.7 or later, or 3.3.4 or later.
What types of systems are affected by CVE-2014-1912?
CVE-2014-1912 affects multiple versions of Python 2.5 through 2.7, as well as Python 3.x up to 3.4rc1.
Who can exploit CVE-2014-1912?
Remote attackers can exploit CVE-2014-1912 by sending crafted input to applications using vulnerable versions of Python.
Are there known exploits for CVE-2014-1912?
Yes, there are known exploits for CVE-2014-1912 that have been demonstrated in the wild.