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)
CVE-2017-1000158
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-13. NVD baseline CVSS 9.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALmedium confidence
- EG Risk
- 62EG Risk 62/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation8% × 40%Automatability100% × 15%CISA SSVC: Track at low or medium mission impact; Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 7.9%
- EPSS %ILE
- 94th
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
November 17, 2017
Last Modified
October 8, 2026
Advisory Details (9)
Auto-updated Oct 8, 2026[SECURITY] [DSA 4307-1] python3.5 security update
https://www.debian.org/security/2018/dsa-4307Python: Buffer overflow (GLSA 201805-02) — Gentoo security
https://security.gentoo.org/glsa/201805-02[SECURITY] [DLA 1520-1] python3.4 security update
https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html[SECURITY] [DLA 1519-1] python2.7 security update
https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html[SECURITY] [DLA 1190-1] python2.6 security update
https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html[SECURITY] [DLA 1189-1] python2.7 security update
https://lists.debian.org/debian-lts-announce/2017/11/msg00035.htmlIssue 30657: [security] CVE-2017-1000158: Unsafe arithmetic in PyString_DecodeEscape - Python tracker
https://bugs.python.org/issue30657Patch Availability(3)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python2.7 (2.7.3-0ubuntu3.10) @ precise | 2026-10-08 | ubuntu |
| ubuntu | python2.7-minimal (2.7.13-2ubuntu0.1) @ zesty | 2026-10-08 | ubuntu |
| ubuntu | python3.5-minimal (3.5.3-1ubuntu0~17.04.2) @ zesty | 2026-10-08 | ubuntu |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(9 across 7 ecosystems)
Debian:7(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python2.6 | 2.6.8-1.1 |
| — |
| python2.7 | 2.7.3-6, 2.7.3-6+deb7u1, 2.7.3-6+deb7u2, 2.7.3-6+deb7u3 |
| — |
Debian:8(2)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python2.7 | 2.7.9-2, 2.7.9-2+deb8u1 |
| — |
| python3.4 | 3.4.2-1 |
| — |
Alpine:v3.4(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python | — |
| — |
Alpine:v3.5(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python2 | — |
| — |
Alpine:v3.6(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python2 | — |
| — |
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python2.7 | — |
| — |
Debian:9(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python3.5 | 3.5.3-1 |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(3)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 11× in last 7d / 29× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 172 total refreshes for this CVE.
- 2026-10-09 20:01 UTCEPSS rescore
- 2026-10-08 21:26 UTCEG score recompute
- 2026-10-08 21:26 UTCVendor advisory
- 2026-10-08 21:26 UTCGHSA enrichment
- 2026-10-08 16:35 UTCEPSS rescore
- 2026-10-07 23:40 UTCEPSS rescore
- 2026-10-06 15:11 UTCEPSS rescore
- 2026-10-05 17:38 UTCEPSS rescore
- 2026-10-04 11:31 UTCOSV refresh
- 2026-10-03 14:21 UTCEPSS rescore
- 2026-10-03 14:21 UTCEPSS rescore
- 2026-09-30 14:58 UTCEPSS rescore
- 2026-09-30 09:20 UTCEG score recompute
- 2026-09-28 13:45 UTCEPSS rescore
- 2026-09-27 13:40 UTCEPSS rescore
- 2026-09-26 15:53 UTCEPSS rescore
- 2026-09-26 15:53 UTCEPSS rescore
- 2026-09-24 13:59 UTCEPSS rescore
- 2026-09-23 13:41 UTCEPSS rescore
- 2026-09-19 15:35 UTCEPSS rescore
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-16 05:05 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-15 01:14 UTCOSV refresh
Show 75 moreShow fewer
- 2026-09-13 16:41 UTCEPSS rescore
- 2026-09-12 14:55 UTCEPSS rescore
- 2026-09-11 14:46 UTCEPSS rescore
- 2026-09-11 09:31 UTCEPSS rescore
- 2026-09-10 09:26 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 13:48 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-28 21:35 UTCEPSS rescore
- 2026-08-27 14:20 UTCEPSS rescore
- 2026-08-27 00:37 UTCOSV refresh
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-17 13:42 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:25 UTCEPSS rescore
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-11 13:36 UTCEPSS rescore
- 2026-08-10 14:38 UTCOSV refresh
- 2026-08-09 13:42 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:12 UTCEPSS rescore
- 2026-08-04 15:05 UTCEPSS rescore
- 2026-08-02 02:22 UTCEPSS rescore
- 2026-08-01 04:11 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-28 15:31 UTCEPSS rescore
- 2026-07-26 14:50 UTCEPSS rescore
- 2026-07-25 15:30 UTCOSV refresh
- 2026-07-25 14:13 UTCEPSS rescore
- 2026-07-24 14:13 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:25 UTCEG score recompute
- 2026-07-22 22:04 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 06:09 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:10 UTCEPSS rescore
- 2026-07-08 09:57 UTCOSV refresh
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
Related CVEs(same product + same CWE)
Same product
10 shownAlpine:v3.4:python · Alpine:v3.5:python2 · Debian:8:python2.7
- CVE-2014-4616EG 5.9EPSS p95MEDIUM
- CVE-2018-1061NVD 6.5EG 7.5EPSS p92HIGH
- CVE-2018-1060EG 7.5EPSS p92HIGH
- CVE-2019-9636EG 9.8EPSS p94CRITICAL
- CVE-2019-9948EG 9.1EPSS p96CRITICAL
- CVE-2019-5010EG 7.5EPSS p97HIGH
- CVE-2019-16056EG 7.5EPSS p92HIGH
- CVE-2018-14647EG 7.5EPSS p96HIGH
- CVE-2019-9947EG 6.1EPSS p92MEDIUM
- CVE-2019-9740EG 6.1EPSS p92MEDIUM
Frequently asked(5)
What is CVE-2017-1000158?
When was CVE-2017-1000158 disclosed?
Is CVE-2017-1000158 actively exploited?
What is the CVSS score of CVE-2017-1000158?
How do I remediate CVE-2017-1000158?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2017-1000158
Is Your Infrastructure Affected by CVE-2017-1000158?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.