CVE-2017-1000158

CRITICAL CVSS 3.1: 9.8 EPSS 7.94%
Updated Oct 09, 2026
Debian
Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions 3.4.0 — 3.5.5
Fixed In 2.7.15
Type CWE-190 (Integer Overflow)
Vendor Debian
Public PoC No

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)

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 6

Configuration From (including) Up to (excluding)
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
— 2.7.15
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.4.0 3.4.8
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.5.0 3.5.5
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
— —