CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Will not fix Red Hat: no fix planned
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-190 and the CVSS impact.
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)
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | before 2.7.15; 3.4.0 to before 3.4.8; 3.5.0 to before 3.5.5 | Vulnerable | python-pillow |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
- cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions before 2.7.15; 3.4.0 to before 3.4.8; 3.5.0 to before 3.5.5 Vulnerable ·python-pillow
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
Not affected: 1 product
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2017-1000158
- 2026-10-03 Alias added: GHSA-r68f-4xcm-3xr6
- 2026-10-08 CISA SSVC decision points changed
References
Advisory 6
- [debian-lts-announce] 20171124 [SECURITY] [DLA 1189-1] python2.7 security update
- [debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security update
- [debian-lts-announce] 20171124 [SECURITY] [DLA 1190-1] python2.6 security update
- DSA-4307
- [debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security update
- GLSA-201805-02
Sources
- CVE-2017-1000158 · CVE Program
- CVE-2017-1000158 · NVD
- FIRST EPSS
- GHSA-r68f-4xcm-3xr6 · GitHub Advisory Database · CC BY 4.0
- CVE-2017-1000158 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences