CVE & CISA-KEV Catalog

CVE-2017-1000158

CRITICALEPSS 94th pctl
9.8
CVSS v3
NVD

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)

How to fix

Remediation Available
python2.7Debian
Fixed in:2.7.13-4CVE-2017-1000158
python2.7Ubuntu
Fixed in:2.7.6-8ubuntu0.4USN-3496-1
Fixed in:2.7.12-1ubuntu0~16.04.2USN-3496-1
python2.7-minimalUbuntu
Fixed in:2.7.6-8ubuntu0.4USN-3496-1
Fixed in:2.7.12-1ubuntu0~16.04.2USN-3496-1
python3.4Ubuntu
Fixed in:3.4.3-1ubuntu1~14.04.6USN-3496-3
python3.4-minimalUbuntu
Fixed in:3.4.3-1ubuntu1~14.04.6USN-3496-3
python3.5Ubuntu
Fixed in:3.5.2-2ubuntu0~16.04.4USN-3496-3
python3.5-minimalUbuntu
Fixed in:3.5.2-2ubuntu0~16.04.4USN-3496-3
Python 2Windows application
Affected:3.5.0 3.5.5Fixed in:3.5.5Python Software Foundation
Affected:3.4.0 3.4.8Fixed in:3.4.8Python Software Foundation
Affected:2.7.15Fixed in:2.7.15Python Software Foundation
Python 3.10Windows application
Affected:3.5.0 3.5.5Fixed in:3.5.5Python Software Foundation
Affected:2.7.15Fixed in:2.7.15Python Software Foundation
Affected:3.4.0 3.4.8Fixed in:3.4.8Python Software Foundation
Python 3.11Windows application
Affected:2.7.15Fixed in:2.7.15Python Software Foundation
Affected:3.5.0 3.5.5Fixed in:3.5.5Python Software Foundation
Affected:3.4.0 3.4.8Fixed in:3.4.8Python Software Foundation
Python 3.12Windows application
Affected:2.7.15Fixed in:2.7.15Python Software Foundation
Affected:3.4.0 3.4.8Fixed in:3.4.8Python Software Foundation
Affected:3.5.0 3.5.5Fixed in:3.5.5Python Software Foundation
Python 3.8Windows application
Affected:3.5.0 3.5.5Fixed in:3.5.5Python Software Foundation
Affected:3.4.0 3.4.8Fixed in:3.4.8Python Software Foundation
Affected:2.7.15Fixed in:2.7.15Python Software Foundation
Python 3.9Windows application
Affected:3.5.0 3.5.5Fixed in:3.5.5Python Software Foundation
Affected:3.4.0 3.4.8Fixed in:3.4.8Python Software Foundation
Affected:2.7.15Fixed in:2.7.15Python Software Foundation

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

7.94%probability of exploitation in 30 days
94thpercentile

High risk: more likely to be exploited than 94% of all known CVEs.

References

Related Vulnerabilities

Other CWE-190 (Integer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-16040Medium6.5100%-Fix
CVE-2019-11477High7.599%-Fix
CVE-2023-44443High7.894%-Fix
CVE-2014-0569High9.390%--
CVE-2017-3599High7.590%-Fix
CVE-2023-21716Critical9.882%-Fix
Embed a live status badge for CVE-2017-1000158
CVE-2017-1000158 severity badge

Markdown

[![CVE-2017-1000158](https://tridentstack.com/cve/badge/CVE-2017-1000158.svg)](https://tridentstack.com/cve/CVE-2017-1000158)

HTML

<a href="https://tridentstack.com/cve/CVE-2017-1000158"><img src="https://tridentstack.com/cve/badge/CVE-2017-1000158.svg" alt="CVE-2017-1000158"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-13.