{"api_version":"1","generated_at":"2026-07-23T10:57:23+00:00","cve":"CVE-2017-1000158","urls":{"html":"https://cve.report/CVE-2017-1000158","api":"https://cve.report/api/cve/CVE-2017-1000158.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2017-1000158","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000158"},"summary":{"title":"CVE-2017-1000158","description":"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)","state":"PUBLISHED","assigner":"mitre","published_at":"2017-11-17 05:29:00","updated_at":"2025-04-20 01:37:25"},"problem_types":["CWE-190","n/a"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html","name":"https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1520-1] python3.4 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html","name":"https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1190-1] python2.6 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.python.org/issue30657","name":"https://bugs.python.org/issue30657","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Patch","Vendor Advisory"],"title":"Issue 30657: [security] CVE-2017-1000158: Unsafe arithmetic in PyString_DecodeEscape - Python tracker","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html","name":"https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1519-1] python2.7 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securitytracker.com/id/1039890","name":"http://www.securitytracker.com/id/1039890","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"CPython Integer Overflow in PyString_DecodeEscape() Lets Remote Users Execute Arbitrary Code - SecurityTracker","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2018/dsa-4307","name":"https://www.debian.org/security/2018/dsa-4307","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-4307-1 python3.5","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html","name":"https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 1189-1] python2.7 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/201805-02","name":"https://security.gentoo.org/glsa/201805-02","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Python: Buffer overflow (GLSA 201805-02) — Gentoo Security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20230216-0001/","name":"https://security.netapp.com/advisory/ntap-20230216-0001/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"CVE-2017-1000158 Python Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-1000158","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000158","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2017","cve_id":"1000158","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"python","cpe5":"python","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2017-1000158","qid":"710291","title":"Gentoo Linux Python Buffer overflow Vulnerability (GLSA 201805-02)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T21:53:07.018Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"[debian-lts-announce] 20171124 [SECURITY] [DLA 1189-1] python2.7 security update","tags":["mailing-list","x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html"},{"name":"[debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security update","tags":["mailing-list","x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html"},{"tags":["x_transferred"],"url":"https://bugs.python.org/issue30657"},{"name":"1039890","tags":["vdb-entry","x_transferred"],"url":"http://www.securitytracker.com/id/1039890"},{"name":"[debian-lts-announce] 20171124 [SECURITY] [DLA 1190-1] python2.6 security update","tags":["mailing-list","x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html"},{"name":"DSA-4307","tags":["vendor-advisory","x_transferred"],"url":"https://www.debian.org/security/2018/dsa-4307"},{"name":"[debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security update","tags":["mailing-list","x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html"},{"name":"GLSA-201805-02","tags":["vendor-advisory","x_transferred"],"url":"https://security.gentoo.org/glsa/201805-02"},{"tags":["x_transferred"],"url":"https://security.netapp.com/advisory/ntap-20230216-0001/"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"dateAssigned":"2017-08-22T00:00:00.000Z","datePublic":"2017-11-16T00:00:00.000Z","descriptions":[{"lang":"en","value":"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)"}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2023-02-16T00:00:00.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"[debian-lts-announce] 20171124 [SECURITY] [DLA 1189-1] python2.7 security update","tags":["mailing-list"],"url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html"},{"name":"[debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security update","tags":["mailing-list"],"url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html"},{"url":"https://bugs.python.org/issue30657"},{"name":"1039890","tags":["vdb-entry"],"url":"http://www.securitytracker.com/id/1039890"},{"name":"[debian-lts-announce] 20171124 [SECURITY] [DLA 1190-1] python2.6 security update","tags":["mailing-list"],"url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html"},{"name":"DSA-4307","tags":["vendor-advisory"],"url":"https://www.debian.org/security/2018/dsa-4307"},{"name":"[debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security update","tags":["mailing-list"],"url":"https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html"},{"name":"GLSA-201805-02","tags":["vendor-advisory"],"url":"https://security.gentoo.org/glsa/201805-02"},{"url":"https://security.netapp.com/advisory/ntap-20230216-0001/"}]}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2017-1000158","datePublished":"2017-11-17T00:00:00.000Z","dateReserved":"2017-11-16T00:00:00.000Z","dateUpdated":"2024-08-05T21:53:07.018Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-11-17 05:29:00","lastModifiedDate":"2025-04-20 01:37:25","problem_types":["CWE-190","n/a"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","versionEndExcluding":"2.7.15","matchCriteriaId":"B3B9C8F1-930A-4904-BA58-CD71AEA6F041"},{"vulnerable":true,"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4.0","versionEndExcluding":"3.4.8","matchCriteriaId":"7100BA3C-4470-4326-A3B2-16C0DF8B7FA0"},{"vulnerable":true,"criteria":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","versionStartIncluding":"3.5.0","versionEndExcluding":"3.5.5","matchCriteriaId":"2525C259-8A44-4DB5-939F-D5B808470669"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*","matchCriteriaId":"16F59A04-14CF-49E2-9973-645477EA09DA"},{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","matchCriteriaId":"C11E6FB0-C8C0-4527-9AA0-CB9B316F8F43"},{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","matchCriteriaId":"DEECE5FC-CACF-4496-A3E7-164736409252"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2017","CveId":"1000158","Ordinal":"1","Title":"CVE-2017-1000158","CVE":"CVE-2017-1000158","Year":"2017"},"notes":[{"CveYear":"2017","CveId":"1000158","Ordinal":"1","NoteData":"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)","Type":"Description","Title":"CVE-2017-1000158"},{"CveYear":"2017","CveId":"1000158","Ordinal":"2","NoteData":"2017-11-17","Type":"Other","Title":"Published"},{"CveYear":"2017","CveId":"1000158","Ordinal":"3","NoteData":"2018-10-21","Type":"Other","Title":"Modified"}]}}}