CVE-2017-1000158Python
Critical 9.8 No auth needed
Follow: this CVE · Python · Python We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 9.8
- EPSS
- 7.9% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- Nov 17, 2017
- Updated
- Oct 8, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-190
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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)
What to do
- Apply the vendor's security update for Python.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | python | < 2.7.15 |
| python | python | ≥ 3.4.0 < 3.4.8 |
| python | python | ≥ 3.5.0 < 3.5.5 |
| debian | debian_linux | 7.0 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.securitytracker.com Third Party Advisory VDB Entry
- bugs.python.org Issue Tracking Patch Vendor Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- security.netapp.com
- www.debian.org Third Party Advisory