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
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.
- 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
06 References
- lists.debian.org[debian-lts-announce] 20171124 [SECURITY] [DLA 1189-1] python2.7 security updatehttps://lists.debian.org/debian-lts-announce/2017/11/msg00035.html
- lists.debian.org[debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security updatehttps://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
- bugs.python.orghttps://bugs.python.org/issue30657
- www.securitytracker.com1039890http://www.securitytracker.com/id/1039890
- lists.debian.org[debian-lts-announce] 20171124 [SECURITY] [DLA 1190-1] python2.6 security updatehttps://lists.debian.org/debian-lts-announce/2017/11/msg00036.html
- www.debian.orgDSA-4307https://www.debian.org/security/2018/dsa-4307
- lists.debian.org[debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security updatehttps://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
- security.gentoo.orgGLSA-201805-02https://security.gentoo.org/glsa/201805-02
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20230216-0001/
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.