VDB
CVE-2017-1000158
CVE-2017-1000158
PUBLISHED
Reported by mitre · Published November 17, 2017
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)
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python2.7 | Ubuntu:16.04:LTS | 2.7.12-1ubuntu0~16.04.2 |
| debian/python-3.15 | debian | 3.5.5-rc1, 3.4.8-rc1, 2.7.14-rc1 |
| python | python | 3.5.5, 3.4.8, 2.7.15 |
| debian/python-3.10 | debian | 3.5.5-rc1, 3.4.8-rc1, 2.7.14-rc1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| alpine | python | 0 |
| alpine | python2 | 0 |
Timeline
- Nov 17, 2017 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 5, 2026 Security Advisory (6 in total, the first dated here)
- Oct 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-1000158
vulnetix vdb fixes CVE-2017-1000158
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-1000158/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20171124 [SECURITY] [DLA 1189-1] python2.7 security update mailing-list
- [debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security update mailing-list
- 1039890 vdb-entry
- [debian-lts-announce] 20171124 [SECURITY] [DLA 1190-1] python2.6 security update mailing-list
- DSA-4307 vendor-advisory
- [debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security update mailing-list
- GLSA-201805-02 vendor-advisory