{"id":"ALPINE-CVE-2017-1000158","details":"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)","modified":"2026-03-09T01:03:26.635315Z","published":"2017-11-17T05:29:00.280Z","upstream":["CVE-2017-1000158"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2017-1000158"}],"affected":[{"package":{"name":"python","ecosystem":"Alpine:v3.4","purl":"pkg:apk/alpine/python?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.14-r0"}]}],"versions":["2.6.1-r0","2.6.1-r1","2.6.1-r2","2.6.2-r0","2.6.2-r1","2.6.3-r0","2.6.4-r0","2.6.5-r0","2.6.5-r1","2.6.5-r2","2.6.5-r3","2.6.5-r4","2.6.5-r5","2.6.5-r6","2.6.5-r7","2.6.5-r8","2.7.10-r0","2.7.10-r1","2.7.10-r2","2.7.10-r3","2.7.11-r0","2.7.11-r1","2.7.11-r2","2.7.11-r3","2.7.12-r0","2.7.2-r0","2.7.2-r2","2.7.2-r3","2.7.3-r3","2.7.3-r4","2.7.3-r5","2.7.5-r0","2.7.5-r1","2.7.5-r2","2.7.5-r3","2.7.6-r0","2.7.6-r1","2.7.6-r2","2.7.6-r3","2.7.6-r4","2.7.7-r0","2.7.8-r0","2.7.9-r0","2.7.9-r1","2.7.9-r2","2.7.9-r3","2.7.9-r4"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2017-1000158.json"}},{"package":{"name":"python2","ecosystem":"Alpine:v3.5","purl":"pkg:apk/alpine/python2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.14-r0"}]}],"versions":["2.6.1-r0","2.6.1-r1","2.6.1-r2","2.6.2-r0","2.6.2-r1","2.6.3-r0","2.6.4-r0","2.6.5-r0","2.6.5-r1","2.6.5-r2","2.6.5-r3","2.6.5-r4","2.6.5-r5","2.6.5-r6","2.6.5-r7","2.6.5-r8","2.7.10-r0","2.7.10-r1","2.7.10-r2","2.7.10-r3","2.7.11-r0","2.7.11-r1","2.7.11-r2","2.7.11-r3","2.7.11-r4","2.7.11-r5","2.7.12-r0","2.7.12-r1","2.7.12-r2","2.7.12-r3","2.7.12-r4","2.7.12-r5","2.7.12-r6","2.7.12-r7","2.7.13-r0","2.7.2-r0","2.7.2-r2","2.7.2-r3","2.7.3-r3","2.7.3-r4","2.7.3-r5","2.7.5-r0","2.7.5-r1","2.7.5-r2","2.7.5-r3","2.7.6-r0","2.7.6-r1","2.7.6-r2","2.7.6-r3","2.7.6-r4","2.7.7-r0","2.7.8-r0","2.7.9-r0","2.7.9-r1","2.7.9-r2","2.7.9-r3","2.7.9-r4"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2017-1000158.json"}},{"package":{"name":"python2","ecosystem":"Alpine:v3.6","purl":"pkg:apk/alpine/python2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.14-r0"}]}],"versions":["2.6.1-r0","2.6.1-r1","2.6.1-r2","2.6.2-r0","2.6.2-r1","2.6.3-r0","2.6.4-r0","2.6.5-r0","2.6.5-r1","2.6.5-r2","2.6.5-r3","2.6.5-r4","2.6.5-r5","2.6.5-r6","2.6.5-r7","2.6.5-r8","2.7.10-r0","2.7.10-r1","2.7.10-r2","2.7.10-r3","2.7.11-r0","2.7.11-r1","2.7.11-r2","2.7.11-r3","2.7.11-r4","2.7.11-r5","2.7.12-r0","2.7.12-r1","2.7.12-r2","2.7.12-r3","2.7.12-r4","2.7.12-r5","2.7.12-r6","2.7.12-r7","2.7.13-r0","2.7.13-r1","2.7.2-r0","2.7.2-r2","2.7.2-r3","2.7.3-r3","2.7.3-r4","2.7.3-r5","2.7.5-r0","2.7.5-r1","2.7.5-r2","2.7.5-r3","2.7.6-r0","2.7.6-r1","2.7.6-r2","2.7.6-r3","2.7.6-r4","2.7.7-r0","2.7.8-r0","2.7.9-r0","2.7.9-r1","2.7.9-r2","2.7.9-r3","2.7.9-r4"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2017-1000158.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}