cbcvebase.
CVE-2014-1912
published 2014-03-01

CVE-2014-1912: 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…

PriorityP263high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
28.32%
97.9th percentile
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.

Affected

50 ranges· showing 25
VendorProductVersion rangeFixed in
applemac_os_x<= 10.10.4
appleos_x_yosemite_v10.10.5_and_security_update_2015-006
debianpython2.7< python2.7 2.7.6-6 (bullseye)python2.7 2.7.6-6 (bullseye)
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython
pythonpython

Detection & IOCsextracted from sources · hover to see the quote

pathModules/socketmodule.c
commandsocket.recvfrom_into()
  • The vulnerable function socket.recvfrom_into() fails to check the size of the supplied buffer, leading to a buffer overflow exploitable via crafted network traffic. Monitor for abnormal buffer sizes passed to this function.
  • The PoC exploit writes a crafted payload to a local file named 'egg' and uses a reverse shell shellcode targeting a remote IP/port; network defenders should watch for unexpected outbound connections from Python processes.
  • Affected Python packages in Red Hat Software Collections: python27-python and python33-python. Audit installed versions for python27-python (Affected) and python33-python (Will not fix).
  • ·Python 2.5 and versions before 2.7.7, 3.x before 3.3.4, and 3.4.x before 3.4rc1 are vulnerable; versions shipped with RHEL 5 did not include the vulnerable function and are not affected.
  • ·The PoC shellcode contains a hardcoded reverse IP (0xc0a80434 = 192.168.4.52) and port (0x7a69 = 31337); actual exploitation payloads will vary these values.

CVSS provenance

nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.