CVE-2017-1000158: CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting…
CVE-2017-1000158 affects 60 listed versions of Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Python
60 of 250 listed versions are affected. Fixed in 3.5.5, 3.4.8, 2.7.15. The newest release, 3.15.2, is not affected.
3.5.4 3.5.3 3.5.2 3.5.1 3.5.0 3.4.7 3.4.6 3.4.5 3.4.4 3.4.3 3.4.2 3.4.1 3.4.0 2.7.14 2.7.13 2.7.12 2.7.11 2.7.10 2.7.9 2.7.8 2.7.7 2.7.6 2.6.6150 2.6.2150 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.5.150 2.5.12 2.5.6 2.5.4 2.5.3 2.5.2 2.5.1 2.5.0 2.4.6 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.3 2.2.2 2.2.1 2.2 2.1.3 2.1.2
What it is
CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting in heap-based buffer overflow (and possible arbitrary code execution)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by MITRE on 17 November 2017. Last changed 8 October 2026.
Sources
Check one version you run: look CVE-2017-1000158 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.