CVE-2017-1000158

critical
Published 2017-11-17 · Modified 2026-05-13
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2
7.5
VIR risk
9.8

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)

Predictions

Exploit likelihood
97%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-1000158

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-1000158.html

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://bugs.python.org/issue30657

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debian7.0affected
debian debian8.0affected
debian debian9.0affected
debian debianbullseyefixed2.7.13-4

Application impact

VendorProductVersionsFixed
pythonpython{"endExcluding":"2.7.15"}2.7.15

References

CWEs

CWE-190

Verify integrity in audit chain (admin only). AS-IS.