{"id":"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)","aliases":["PSF-2017-6"],"modified":"2026-04-09T05:01:16.414099Z","published":"2017-11-17T05:29:00.280Z","related":["MGASA-2018-0004","SUSE-SU-2018:0768-1","SUSE-SU-2018:1372-1","SUSE-SU-2020:0234-1","SUSE-SU-2020:0497-1","openSUSE-SU-2024:11202-1"],"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html"},{"type":"ADVISORY","url":"https://www.debian.org/security/2018/dsa-4307"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1039890"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201805-02"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230216-0001/"},{"type":"FIX","url":"https://bugs.python.org/issue30657"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python/cpython","events":[{"introduced":"0"},{"fixed":"ca079a3ea30098aff3197c559a0e32d42dda6d84"},{"introduced":"3101b7076270756f8be699358c69c5d15ea2cc48"},{"fixed":"a61d7f2490fd677343c28ac53e1b41cdb0e1d998"},{"introduced":"2e789a1f1d84b343a996e8654590703b5fbdd441"},{"fixed":"27657e7cea26548958518144d63200d7a2333d1c"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.7.15"},{"introduced":"3.4.0"},{"fixed":"3.4.8"},{"introduced":"3.5.0"},{"fixed":"3.5.5"}]}}],"versions":["v0.9.8","v0.9.9","v1.0.1","v1.0.2","v1.1","v1.1.1","v1.2","v1.2b1","v1.2b2","v1.2b3","v1.2b4","v1.3","v1.3b1","v1.4","v1.4b1","v1.4b2","v1.4b3","v1.5","v1.5.1","v1.5.2","v1.5.2a1","v1.5.2a2","v1.5.2b1","v1.5.2b2","v1.5.2c1","v1.5a1","v1.5a2","v1.5a3","v1.5a4","v1.5b1","v1.5b2","v1.6a1","v1.6a2","v2.0","v2.0b1","v2.0b2","v2.0c1","v2.1","v2.1a1","v2.1a2","v2.1b1","v2.1b2","v2.1c1","v2.1c2","v2.2a3","v2.3c1","v2.3c2","v2.4","v2.4a1","v2.4a2","v2.4a3","v2.4b1","v2.4b2","v2.4c1","v2.5a0","v2.5a1","v2.5a2","v2.5b1","v2.5b2","v2.5b3","v2.6","v2.6a1","v2.6a2","v2.6a3","v2.6b1","v2.6b2","v2.6b3","v2.6rc1","v2.6rc2","v2.7","v2.7.1","v2.7.10rc1","v2.7.11rc1","v2.7.12rc1","v2.7.13rc1","v2.7.15rc1","v2.7.1rc1","v2.7.2rc1","v2.7.3rc1","v2.7.4rc1","v2.7.5","v2.7.6rc1","v2.7.8","v2.7.9rc1","v2.7a1","v2.7a2","v2.7a3","v2.7a4","v2.7b1","v2.7b2","v2.7rc1","v2.7rc2","v3.0a1","v3.0a2","v3.0a3","v3.0a4","v3.0a5","v3.0b1","v3.0b2","v3.0b3","v3.0rc1","v3.0rc2","v3.0rc3","v3.1","v3.1a1","v3.1a2","v3.1b1","v3.1rc1","v3.1rc2","v3.2a1","v3.2a2","v3.2a3","v3.2a4","v3.2b1","v3.2b2","v3.2rc1","v3.2rc2","v3.2rc3","v3.3.0a2","v3.3.0a3","v3.3.0a4","v3.3.0b1","v3.3.0b2","v3.3.0rc1","v3.3.0rc2","v3.3.0rc3","v3.4.0","v3.4.0a1","v3.4.0a2","v3.4.0a3","v3.4.0a4","v3.4.0b1","v3.4.0b2","v3.4.0b3","v3.4.1","v3.4.1rc1","v3.4.2rc1","v3.4.3","v3.4.3rc1","v3.4.5","v3.4.5rc1","v3.4.6","v3.4.6rc1","v3.4.7","v3.4.7rc1","v3.4.8rc1","v3.5.0a1","v3.5.0a2","v3.5.0a3","v3.5.0a4","v3.5.0b1","v3.5.0b3","v3.5.0b4","v3.5.0rc1","v3.5.0rc2","v3.5.0rc3","v3.5.1rc1","v3.5.2","v3.5.2rc1","v3.5.3","v3.5.3rc1","v3.5.4","v3.5.4rc1","v3.5.5rc1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-1000158.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}