cbcvebase.
CVE-2016-5636
published 2016-09-02

CVE-2016-5636: Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 allows remote…

PriorityP259critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
25.67%
97.7th percentile
Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 allows remote attackers to have unspecified impact via a negative data size value, which triggers a heap-based buffer overflow.

Affected

32 ranges· showing 25
VendorProductVersion rangeFixed in
applemacos_sierra_10.12.4_security_update_2017-001_el_capitan_and_security_update_201
debianpython2.7< python2.7 2.7.12~rc1-1 (bullseye)python2.7 2.7.12~rc1-1 (bullseye)
pythonpython<= 2.7.11
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

  • The vulnerability is triggered via a specially crafted zip file placed in a Python module path that is subsequently loaded by an import statement, causing a heap overflow in the zipimporter module (zipimport.c, get_data function).
  • The root trigger is a negative data size value passed to get_data in zipimport.c, causing an integer overflow that leads to a heap-based buffer overflow. Monitor for anomalous or malformed zip files in Python module/import paths.
  • An attacker could use a crafted zip file to exploit this; detection should focus on unexpected or externally-supplied zip files appearing in Python module search paths (sys.path entries).
  • ·Affected versions are CPython before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2. Detection/patching efforts should confirm the running Python version falls within these ranges.
  • ·Red Hat rated this issue as Low security impact and marked multiple affected packages as 'Will not fix', meaning patched RPMs may not be available from Red Hat for RHEL 5/6 or Software Collections.
  • ·Jython on Red Hat Enterprise Linux 6 is listed as not affected; scope this caveat when assessing Jython-based deployments.

CVSS provenance

nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu6.5MEDIUM
Stop checking back — get the weekly exploitation signal.

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.