CVE-2017-1000158

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-1000158
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-1000158.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-1000158
Aliases
Related
Published
2017-11-17T05:29:00Z
Modified
2025-04-20T03:34:38.059014Z
Downstream
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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)

References

Affected packages

Alpine:v3.4 / python

Package

Name
python
Purl
pkg:apk/alpine/python?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.14-r0

Affected versions

2.*

2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.2-r0
2.6.2-r1
2.6.3-r0
2.6.4-r0
2.6.5-r0
2.6.5-r1
2.6.5-r2
2.6.5-r3
2.6.5-r4
2.6.5-r5
2.6.5-r6
2.6.5-r7
2.6.5-r8
2.7.2-r0
2.7.2-r2
2.7.2-r3
2.7.3-r3
2.7.3-r4
2.7.3-r5
2.7.5-r0
2.7.5-r1
2.7.5-r2
2.7.5-r3
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.7-r0
2.7.8-r0
2.7.9-r0
2.7.9-r1
2.7.9-r2
2.7.9-r3
2.7.9-r4
2.7.10-r0
2.7.10-r1
2.7.10-r2
2.7.10-r3
2.7.11-r0
2.7.11-r1
2.7.11-r2
2.7.11-r3
2.7.12-r0

Alpine:v3.5 / python2

Package

Name
python2
Purl
pkg:apk/alpine/python2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.14-r0

Affected versions

2.*

2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.2-r0
2.6.2-r1
2.6.3-r0
2.6.4-r0
2.6.5-r0
2.6.5-r1
2.6.5-r2
2.6.5-r3
2.6.5-r4
2.6.5-r5
2.6.5-r6
2.6.5-r7
2.6.5-r8
2.7.2-r0
2.7.2-r2
2.7.2-r3
2.7.3-r3
2.7.3-r4
2.7.3-r5
2.7.5-r0
2.7.5-r1
2.7.5-r2
2.7.5-r3
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.7-r0
2.7.8-r0
2.7.9-r0
2.7.9-r1
2.7.9-r2
2.7.9-r3
2.7.9-r4
2.7.10-r0
2.7.10-r1
2.7.10-r2
2.7.10-r3
2.7.11-r0
2.7.11-r1
2.7.11-r2
2.7.11-r3
2.7.11-r4
2.7.11-r5
2.7.12-r0
2.7.12-r1
2.7.12-r2
2.7.12-r3
2.7.12-r4
2.7.12-r5
2.7.12-r6
2.7.12-r7
2.7.13-r0

Alpine:v3.6 / python2

Package

Name
python2
Purl
pkg:apk/alpine/python2?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.14-r0

Affected versions

2.*

2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.2-r0
2.6.2-r1
2.6.3-r0
2.6.4-r0
2.6.5-r0
2.6.5-r1
2.6.5-r2
2.6.5-r3
2.6.5-r4
2.6.5-r5
2.6.5-r6
2.6.5-r7
2.6.5-r8
2.7.2-r0
2.7.2-r2
2.7.2-r3
2.7.3-r3
2.7.3-r4
2.7.3-r5
2.7.5-r0
2.7.5-r1
2.7.5-r2
2.7.5-r3
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.7-r0
2.7.8-r0
2.7.9-r0
2.7.9-r1
2.7.9-r2
2.7.9-r3
2.7.9-r4
2.7.10-r0
2.7.10-r1
2.7.10-r2
2.7.10-r3
2.7.11-r0
2.7.11-r1
2.7.11-r2
2.7.11-r3
2.7.11-r4
2.7.11-r5
2.7.12-r0
2.7.12-r1
2.7.12-r2
2.7.12-r3
2.7.12-r4
2.7.12-r5
2.7.12-r6
2.7.12-r7
2.7.13-r0
2.7.13-r1

Debian:11 / python2.7

Package

Name
python2.7
Purl
pkg:deb/debian/python2.7?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.13-4

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/python/cpython

Affected ranges

Type
GIT
Repo
https://github.com/python/cpython
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed