Description
Buffer overflow in the socket.recvfrom_into 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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | python2.7 | 2.7.6-6 | — |
| Debian 7 | python2.7 | 2.7.3-6+deb7u2 | DSA-2880-1 |
| Debian 6.0 | python2.6 | 2.6.6-8+deb6u1 | DLA-25-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | python +5 | 2.6.6-64.el6 | RHSA-2015:1330 |
| RHEL 2 | python27 +2 | 1.1-17.el6 | RHSA-2015:1064 |
| RHEL 2 | python27-python +6 | 2.7.8-3.el6 | RHSA-2015:1064 |
| RHEL 2 | python27-python-pip | 1.5.6-5.el6 | RHSA-2015:1064 |
| RHEL 2 | python27-python-setuptools | 0.9.8-3.el6 | RHSA-2015:1064 |
| RHEL 2 | python27-python-simplejson | 3.2.0-2.el6 | RHSA-2015:1064 |
| RHEL 2 | python27-python-wheel | 0.24.0-2.el6 | RHSA-2015:1064 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | python | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SLES 15 SP1 | python-base | 2.7.17-7.32.1 | SUSE-SU-2020:0234-1 |
| SLES 15 | python | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SLES 15 | python-base | 2.7.17-7.32.1 | SUSE-SU-2020:0234-1 |
| SLES 2 | python | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SLES 2 | python-base | 2.7.17-7.32.1 | SUSE-SU-2020:0234-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python | 2.7.18-8.1 | openSUSE-SU-2024:11202-1 |
| openSUSE Tumbleweed | python-base | 2.7.12-1.4 | openSUSE-SU-2024:10536-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | python27 +2 | 1.1-20.el7 | ELSA-2015-1064 |
| Oracle Linux 7 | python27-python +6 | 2.7.8-3.el7 | ELSA-2015-1064 |
| Oracle Linux 7 | python27-python-pip | 1.5.6-5.el7 | ELSA-2015-1064 |
| Oracle Linux 7 | python27-python-setuptools | 0.9.8-5.el7 | ELSA-2015-1064 |
| Oracle Linux 7 | python27-python-simplejson | 3.2.0-3.el7 | ELSA-2015-1064 |
| Oracle Linux 7 | python27-python-wheel | 0.24.0-2.el7 | ELSA-2015-1064 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Python - 'socket.recvfrom_into()' Remote Buffer Overflow EDB-31875 · remote · Feb 24, 2014
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 9
- RHSA-2015:1330 Red Hat Security Advisory: python security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2015:1064 Red Hat Security Advisory: python27 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- DLA-25-1 python2.6 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-2880-1 python2.7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10536-1 libpython2_7-1_0-2.7.12-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-2521 Python: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 9, 2025
- openSUSE-SU-2024:11202-1 python-2.7.18-8.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- SUSE-SU-2020:0234-1 Security update for python SUSE / openSUSE Security Updates · May 2, 2025
- ELSA-2015-1064 Moderate: python27 security, bug fix, and enhancement update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 4, 2016
References
- http://hg.python.org/cpython/rev/87673659d8f7
- openSUSE-SU-2014:0518 vendor-advisory
- openSUSE-SU-2014:0597 vendor-advisory
- RHSA-2015:1064 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://pastebin.com/raw.php?i=GHXSmNEg
- http://bugs.python.org/issue20246
- DSA-2880 vendor-advisory
- GLSA-201503-10 vendor-advisory
- 65379 vdb-entry
- [oss-security] 20140212 Re: CVE request? buffer overflow in socket.recvfrom_into mailing-list
- APPLE-SA-2015-08-13-2 vendor-advisory
- RHSA-2015:1330 vendor-advisory
- 31875 exploit
- https://www.trustedsec.com/february-2014/python-remote-code-execution-socket-recvfrom_into/
- https://support.apple.com/kb/HT205031
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- USN-2125-1 vendor-advisory
- 1029831 vdb-entry