Skip to content
Fencer Intel
critical 9.8

CVE-2017-1000158 json

CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting i…

published 8y ago modified last mo. also EUVD-2017-1443

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
7.9%
EPSS 7.9% chance of exploitation in 30 days, percentile 94%
public exploits
0
none known

Summary

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)

Patch / fix

  • python python 2.7.15, 3.4.8, 3.5.5
  • python2.7 Debian 11 2.7.13-4

debian advisories DEBIAN-CVE-2017-1000158

  • python2.7 Ubuntu 14.04 LTS 2.7.6-8ubuntu0.4
  • python2.7 Ubuntu 16.04 LTS 2.7.12-1ubuntu0~16.04.2
  • python3.4 Ubuntu 14.04 LTS 3.4.3-1ubuntu1~14.04.6
  • python3.5 Ubuntu 14.04 LTS 3.5.2-2ubuntu0~16.04.4~14.04.1
  • python3.5 Ubuntu 16.04 LTS 3.5.2-2ubuntu0~16.04.4

ubuntu advisories UBUNTU-CVE-2017-1000158

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python3 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +18 more 3.4.10-25.39.3
  • python3-base SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +18 more 3.4.10-25.39.2
  • python SLE Module for Python 2 15 SP1, SLE Module for Desktop Applications 15 SP1, SLE Module for Desktop Applications 15 +2 more 2.7.17-7.32.2
  • python-base SLE Module for Python 2 15 SP1, SLE Module for Basesystem 15 SP1, SLE Module for Basesystem 15 2.7.17-7.32.1
  • python SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +1 more 2.7.13-28.3.2
  • python-base SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +2 more 2.7.13-28.3.2
  • python SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 2.6.9-40.3.1
  • python-base SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 2.6.9-40.3.1

suse advisories SUSE-SU-2020:0497-1SUSE-SU-2020:0234-1SUSE-SU-2018:1372-1SUSE-SU-2018:0768-1

  • python openSUSE Tumbleweed 2.7.18-8.1

opensuse advisories openSUSE-SU-2024:11202-1

  • python Alpine 3.4 2.7.14-r0
  • python2 Alpine 3.6, Alpine 3.5 2.7.14-r0

alpine advisories ALPINE-CVE-2017-1000158

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2017-1000158 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-1000158 updated cvss 8.1

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

  • Red Hat Enterprise Linux 5 python Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, tkinter, python-libs, python-test, python-tools Red Hat Software Collections python27-python, python27-tkinter, rh-python34-python, rh-python35-python, python27-python-libs, python27-python-test, +9 more
    affected: no fix planned “Will not fix”
  • Red Hat Software Collections rh-python36-python, rh-python36-python-libs, rh-python36-python-test, rh-python36-python-tools, rh-python36-python-tkinter
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
last mo.

Exploit prediction

7.94% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-190 Integer Overflow or Wraparound

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.