CVE-2014-1912
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Python - 'socket.recvfrom_into()' Remote Buffer Overflow
OS impact
macOS Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| bullseye | Fixed | 2.7.6-6 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| 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.2 | |
| 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.2150 | |
| 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.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.0 | |
| python | python | 3.3.1 | |
| python | python | 3.3.2 | |
| python | python | 3.3.3 | |
| python | python | 3.4 | |
References
- http://bugs.python.org/issue20246
- http://hg.python.org/cpython/rev/87673659d8f7
- http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html
- http://lists.opensuse.org/opensuse-updates/2014-04/msg00035.html
- http://lists.opensuse.org/opensuse-updates/2014-05/msg00008.html
- http://pastebin.com/raw.php?i=GHXSmNEg
- http://rhn.redhat.com/errata/RHSA-2015-1064.html
- http://rhn.redhat.com/errata/RHSA-2015-1330.html
- http://www.debian.org/security/2014/dsa-2880
- http://www.exploit-db.com/exploits/31875
- http://www.openwall.com/lists/oss-security/2014/02/12/16
- http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://www.securityfocus.com/bid/65379
- http://www.securitytracker.com/id/1029831
- http://www.ubuntu.com/usn/USN-2125-1
- https://security.gentoo.org/glsa/201503-10
- https://support.apple.com/kb/HT205031
- https://www.trustedsec.com/february-2014/python-remote-code-execution-socket-recvfrom_into/
- https://security-tracker.debian.org/tracker/CVE-2014-1912
CWEs
CWE-119
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.