CVE-2017-1000158

CRITICALNVD 9.89.8
EchelonGraph scoreMEDIUM confidence

“—” beside the score: it is equal to NVD's CVSS score.

Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-13. NVD baseline CVSS 9.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: EPSS, GitHub Security Advisory, NVD CVSS v3
Trending — 4 sources updated this week

Also known asEUVD-2017-1443 (ENISA EUVD) · GHSA-r68f-4xcm-3xr6 (GitHub Security Advisories)Source: ENISA EUVD

9.8EG
EchelonGraph verdictPlan a fixRemediate within your standard update timelines at low or medium mission impact and sooner than that at high (the SSVC decision on this page).
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 7.9%CVSS: 9.8Exploit: None knownExposed services: Not assessed

A fix is available — apply it.

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 v3
9.8
EG Score
9.8CRITICALmedium confidence
EG Risk
62
EG Risk 62/100

EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.

How it’s computed (value × EchelonGraph’s weight)
Severity98% × 45%
Impact severity (EG Severity): CVSS 9.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.
Exploitation7.9% × 40%
FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.
Automatability100% × 15%
CISA's SSVC Automatable value: yes (Vulnrichment).
SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Attend at high (mission-essential systems).
Exploitation none (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.
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

What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)

The EG score (9.8): severity, escalated by confirmed exploitation. This CVE's 9.8 is its impact severity (EG Severity), not escalated.

EG Severity
9.8 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
EG Likelihood
7.9% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-01). FIRST's exploitation probability, not an EchelonGraph model.
Confirmed exploitation
None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
EG Priority
SSVC Track at medium mission impactTrack at low or medium mission impact; Attend at high (mission-essential systems).CISA BOD 26-04: 3 days if the affected system is publicly exposed; 60 days if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.

SSVC (CISA's decision table, applied by EchelonGraph)Track 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). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table

BOD 26-04 (CISA's remediation timeline, Table 1)3 days if the affected system is publicly exposed; 60 days if it is not.

The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it

Published

November 17, 2017

Last Modified

October 8, 2026

Advisory Details (9)

Auto-updated Oct 30, 2026
Patch available.
Web page

[SECURITY] [DSA 4307-1] python3.5 security update

https://www.debian.org/security/2018/dsa-4307
Web page

Python: Buffer overflow (GLSA 201805-02) — Gentoo security

https://security.gentoo.org/glsa/201805-02
Web pageMentions a patch (unverified)

[SECURITY] [DLA 1520-1] python3.4 security update

https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
Web pageMentions a patch (unverified)

[SECURITY] [DLA 1519-1] python2.7 security update

https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
Web pageMentions a patch (unverified)

[SECURITY] [DLA 1190-1] python2.6 security update

https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html
Web pageMentions a patch (unverified)

[SECURITY] [DLA 1189-1] python2.7 security update

https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html
Web page

Issue 30657: [security] CVE-2017-1000158: Unsafe arithmetic in PyString_DecodeEscape - Python tracker

https://bugs.python.org/issue30657

Patch Availability(3)

Vendor / EcosystemFix (by version range) / PatchReleasedSource
ubuntupython2.7 (2.7.3-0ubuntu3.10) @ precise2026-11-01ubuntu
ubuntupython2.7-minimal (2.7.6-8ubuntu0.4) @ trusty2026-11-01ubuntu
ubuntupython3.5-minimal (3.5.3-1ubuntu0~17.04.2) @ zesty2026-11-01ubuntu

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)
PackageVulnerable rangeFix by version rangeDependents
python2.62.6.8-1.1
  • every version up to 2.6.8-1.1+deb7u1: fixed in 2.6.8-1.1+deb7u1
—
python2.72.7.3-6, 2.7.3-6+deb7u1, 2.7.3-6+deb7u2, 2.7.3-6+deb7u3
  • every version up to 2.7.3-6+deb7u4: fixed in 2.7.3-6+deb7u4
—
Debian:8(2)
PackageVulnerable rangeFix by version rangeDependents
python2.72.7.9-2, 2.7.9-2+deb8u1
  • every version up to 2.7.9-2+deb8u2: fixed in 2.7.9-2+deb8u2
—
python3.43.4.2-1
  • every version up to 3.4.2-1+deb8u1: fixed in 3.4.2-1+deb8u1
—
Alpine:v3.4(1)
PackageVulnerable rangeFix by version rangeDependents
python—
  • 3.4.0 up to 2.7.14-r0: fixed in 2.7.14-r0
—
Alpine:v3.5(1)
PackageVulnerable rangeFix by version rangeDependents
python2—
  • every version up to 2.7.14-r0: fixed in 2.7.14-r0
—
Alpine:v3.6(1)
PackageVulnerable rangeFix by version rangeDependents
python2—
  • every version up to 2.7.14-r0: fixed in 2.7.14-r0
—
Debian:11(1)
PackageVulnerable rangeFix by version rangeDependents
python2.7—
  • every version up to 2.7.13-4: fixed in 2.7.13-4
—
Debian:9(1)
PackageVulnerable rangeFix by version rangeDependents
python3.53.5.3-1
  • every version up to 3.5.3-1+deb9u1: fixed in 3.5.3-1+deb9u1
—

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

All Vendor Advisories

(4)

Data Freshness Timeline

(refreshed 24× in last 7d / 85× in last 30d)

Each row is a time one of our pipelines fetched, updated or re-scored this CVE. 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. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.

Showing the most recent 98 of 245 refreshes on record for this CVE.

A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 2 repeat rows among the latest 100 are merged into the row they repeat. The 147 oldest rows on record are not shown and were not checked, so the counts can still include repeats.

  1. 2026-11-01 18:30 UTCEG score recompute
  2. 2026-11-01 18:30 UTCVendor advisory
  3. 2026-11-01 18:30 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  4. 2026-10-31 16:50 UTCEG score recompute
  5. 2026-10-31 16:50 UTCVendor advisory
  6. 2026-10-31 16:50 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  7. 2026-10-31 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  8. 2026-10-30 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  9. 2026-10-30 14:49 UTCEG score recompute
  10. 2026-10-30 14:49 UTCVendor advisory
  11. 2026-10-30 14:49 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  12. 2026-10-29 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  13. 2026-10-29 13:08 UTCEG score recompute
  14. 2026-10-29 13:08 UTCVendor advisory
  15. 2026-10-29 13:08 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  16. 2026-10-28 16:26 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  17. 2026-10-28 11:25 UTCEG score recompute
  18. 2026-10-28 11:25 UTCVendor advisory
  19. 2026-10-28 11:25 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  20. 2026-10-27 16:26 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  21. 2026-10-27 09:17 UTCEG score recompute
  22. 2026-10-27 09:17 UTCVendor advisory
  23. 2026-10-27 09:17 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  24. 2026-10-26 16:26 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  25. 2026-10-26 07:05 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
Show 73 more
  1. 2026-10-25 19:41 UTCEG score recompute
  2. 2026-10-25 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  3. 2026-10-25 05:23 UTCEG score recompute
  4. 2026-10-25 05:23 UTCVendor advisory
  5. 2026-10-25 05:23 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  6. 2026-10-24 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  7. 2026-10-24 03:43 UTCEG score recompute
  8. 2026-10-24 03:42 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  9. 2026-10-23 16:26 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  10. 2026-10-23 02:02 UTCEG score recompute
  11. 2026-10-23 02:02 UTCVendor advisory
  12. 2026-10-23 02:02 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  13. 2026-10-22 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  14. 2026-10-22 00:22 UTCEG score recompute
  15. 2026-10-22 00:22 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  16. 2026-10-21 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  17. 2026-10-20 22:43 UTCEG score recompute
  18. 2026-10-20 22:43 UTCVendor advisory
  19. 2026-10-20 22:43 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  20. 2026-10-20 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  21. 2026-10-19 20:49 UTCEG score recompute
  22. 2026-10-19 20:49 UTCVendor advisory
  23. 2026-10-19 20:49 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  24. 2026-10-19 16:26 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  25. 2026-10-18 17:50 UTCEG score recompute
  26. 2026-10-18 17:50 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  27. 2026-10-18 16:26 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  28. 2026-10-18 10:43 UTCEG score recompute
  29. 2026-10-17 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  30. 2026-10-17 16:09 UTCEG score recompute
  31. 2026-10-17 16:09 UTCVendor advisory
  32. 2026-10-17 16:09 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  33. 2026-10-16 16:28 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  34. 2026-10-16 14:29 UTCEG score recompute
  35. 2026-10-16 14:29 UTCVendor advisory
  36. 2026-10-16 14:29 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  37. 2026-10-15 16:26 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  38. 2026-10-15 12:48 UTCEG score recompute
  39. 2026-10-15 12:47 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  40. 2026-10-14 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  41. 2026-10-14 08:04 UTCEG score recompute
  42. 2026-10-14 08:04 UTCVendor advisory
  43. 2026-10-14 08:04 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  44. 2026-10-13 16:27 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  45. 2026-10-13 03:17 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  46. 2026-10-12 20:37 UTCEG score recompute
  47. 2026-10-12 16:28 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  48. 2026-10-12 01:01 UTCEG score recompute
  49. 2026-10-11 13:40 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  50. 2026-10-10 19:55 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  51. 2026-10-09 20:01 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  52. 2026-10-08 21:26 UTCEG score recompute
  53. 2026-10-08 21:26 UTCVendor advisory
  54. 2026-10-08 21:26 UTCGHSA enrichmentGHSA-r68f-4xcm-3xr6 · GitHub severity CRITICAL · GitHub CVSS 9.8
  55. 2026-10-08 16:35 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  56. 2026-10-07 23:40 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  57. 2026-10-06 15:11 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  58. 2026-10-05 17:38 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  59. 2026-10-04 11:31 UTCOSV refresh
  60. 2026-10-03 14:21 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  61. 2026-09-30 14:58 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  62. 2026-09-30 09:20 UTCEG score recompute
  63. 2026-09-28 13:45 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  64. 2026-09-27 13:40 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  65. 2026-09-26 15:53 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  66. 2026-09-24 13:59 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  67. 2026-09-23 13:41 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  68. 2026-09-19 15:35 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  69. 2026-09-18 19:22 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  70. 2026-09-17 19:22 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  71. 2026-09-16 05:05 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  72. 2026-09-15 03:05 UTCEPSS rescoreEPSS 7.9% · 94th percentile
  73. 2026-09-15 01:14 UTCOSV refresh

Frequently asked(5)

What is CVE-2017-1000158?
CVE-2017-1000158 is a critical-severity vulnerability; its CVE record was published on November 17, 2017. 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)
When was CVE-2017-1000158 made public?
CVE-2017-1000158 was made public on November 16, 2017: that is the date its CVE record's CNA, MITRE Corporation, gives for when the vulnerability was made public. The CVE record itself was published on November 17, 2017. EchelonGraph's copy of the record carries a last-modified date of October 8, 2026; the record at its source may have been updated since.
Is CVE-2017-1000158 actively exploited?
CVE-2017-1000158 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 7.9% probability of exploitation in the next 30 days (94th percentile of EPSS-scored CVEs).
What is the CVSS score of CVE-2017-1000158?
CVE-2017-1000158 has a CVSS v3 base score of 9.8 (NVD).
How do I remediate CVE-2017-1000158?
A fix for CVE-2017-1000158 is available: update to the fixed version the vendor names in its advisory.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2017-1000158

Explore →

Is Your Infrastructure Affected by CVE-2017-1000158?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.