CVE-2014-1912: Buffer Overflow

Published Feb 6, 2014
·
Updated

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

62 affected componentsFixes available
Python Python=2.5.1
Python Python=2.5.2
Python Python=2.5.3
Python Python=2.5.4
Python Python=2.5.6
Python Python=2.5.150
Python Python=2.6.1
Python Python=2.6.2
Python Python=2.6.3
Python Python=2.6.4
Python Python=2.6.5
Python Python=2.6.6
Python Python=2.6.7
Python Python=2.6.8
Python Python=2.6.2150
Python Python=2.6.6150
Python Python=2.7.1
Python Python=2.7.1-rc1
Python Python=2.7.2-rc1
Python Python=2.7.3
Python Python=2.7.4
Python Python=2.7.5
Python Python=2.7.6
Python Python=2.7.1150
Python Python=2.7.1150
Python Python=2.7.2150
Apple iOS and macOS<=10.10.4
Python Python=3.0
Python Python=3.0.1
Python Python=3.1
Python Python=3.1.1
Python Python=3.1.2
Python Python=3.1.3
Python Python=3.1.4
Python Python=3.1.5
Python Python=3.1.2150
Python Python=3.2
Python Python=3.2-alpha
Python Python=3.2.0
Python Python=3.2.1
Python Python=3.2.2
Python Python=3.2.3
Python Python=3.2.4
Python Python=3.2.5
Python Python=3.2.2150
Python Python=3.3
Python Python=3.3-beta2
Python Python=3.3.0
Python Python=3.3.1
Python Python=3.3.2
Python Python=3.3.3
Python Python=3.4-alpha1
redhat/python<2.7.7
2.7.7
redhat/python<3.3.4
3.3.4
redhat/python<3.4.0
3.4.0
debian/python2.7<2.7.6-6
2.7.6-6
debian/python2.5
debian/python2.6
2.6.6-8+deb6u1
debian/python2.7
2.7.3-6+deb7u22.7.6-6
debian/python3.1
debian/python3.3
3.3.5-1
debian/python3.4
3.4.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 2.7.7
  2. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 3.3.4
  3. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 3.4.0
  4. Upgrade

    Upgrade debian/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.6-6
  5. Upgrade

    Upgrade debian/python2.6 to a version that resolves this vulnerability.

    Fixed in 2.6.6-8+deb6u1
  6. Upgrade

    Upgrade debian/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.3-6+deb7u2Fixed in 2.7.6-6
  7. Upgrade

    Upgrade debian/python3.3 to a version that resolves this vulnerability.

    Fixed in 3.3.5-1
  8. Upgrade

    Upgrade debian/python3.4 to a version that resolves this vulnerability.

    Fixed in 3.4.0-1
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.7.7
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.3.4
  11. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.4rc1

Event History

Feb 6, 2014
Data Sourced
via Red Hat·06:16 PM
DescriptionSeverityAffected Software
Feb 28, 2014
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Mar 1, 2014
Data Sourced
12:55 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·12:55 AM
DescriptionAffected Software
Jun 17, 2026
Updated
via NVD·12:05 AM
Affected Software
Nov 24, 2026
Withdrawn
via OSV·04:28 AM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

Who can exploit CVE-2014-1912?

Remote attackers can exploit CVE-2014-1912 by sending crafted input to applications using vulnerable versions of Python.

5

Are there known exploits for CVE-2014-1912?

Yes, there are known exploits for CVE-2014-1912 that have been demonstrated in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203