CVE-2017-1000158

python: Integer overflow in PyString_DecodeEscape results in heap-base buffer overflow

Published Nov 17, 2017 CVSS 3.1 · 9.8 Critical EPSS 7.9% KEV · Not listed
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)

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1189-1 python2.7 security update
Debian DLA Debian DLA DLA-1190-1 python2.6 security update
Debian DLA Debian DLA DLA-1519-1 python2.7 security update
Debian DLA Debian DLA DLA-1520-1 python3.4 security update
Debian DSA Debian DSA DSA-4307-1 python3.5 security update
EUVD EUVD EUVD-2017-1443 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)
Ubuntu USN Ubuntu USN USN-3496-1 Python vulnerability
Ubuntu USN Ubuntu USN USN-3496-2 Python vulnerability
Ubuntu USN Ubuntu USN USN-3496-3 Python vulnerability
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.02395}

epss

{'score': 0.02492}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 8, 2026, 9:03 PM
Reserved
Nov 16, 2017, 12:00 AM
Status
Modified
Published
Nov 17, 2017, 5:29 AM
Modified
Oct 8, 2026, 9:17 PM
Severity
Moderate
Public date
Jun 13, 2017, 12:00 AM