synced 12 MIN AGO
01 Record

CVE-2017-1000158

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

UnratedPUBLISHEDCNA: mitre
CNA base scoreUnratedNo CNA CVSS vector

02 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

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
7.94% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 94.7% of scored records. A rank, not a probability.
NVD base score
9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-10-08.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2017-11-17 00:00Z8 YR AGO
Last updated
2026-10-08 21:03Z20 DAYS AGO
Reserved
2017-11-16
Assigning CNA
mitre
Record state
PUBLISHED
Severity
Not rated by the issuing CNA
CNA CVSS vector
Not published by the issuing CNA
Weaknesses
  • CWE-190Integer Overflow or WraparoundBase
Data version
5.2
Document digest
d04d7c6a44b83ce2ee4e947dcd9a45819383046229beb4435a9cae2ba528b000

05 Affected products

VendorProductVersionsPlatforms
debiandebian_linuxNot specified—
pythonpythonNot specified—
redhatenterprise_linuxNot specified—
redhatrhel_software_collectionsNot specified—

06 References

07 Fixed in

Debian 11

  • python2.7
    Fixed in 2.7.13-4

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 14.04 LTS

  • python2.7
    Fixed in 2.7.6-8ubuntu0.4
  • python3.4
    Fixed in 3.4.3-1ubuntu1~14.04.6
  • python3.5
    Fixed in 3.5.2-2ubuntu0~16.04.4~14.04.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • python2.7
    Fixed in 2.7.12-1ubuntu0~16.04.2
  • python3.5
    Fixed in 3.5.2-2ubuntu0~16.04.4

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.