CVE-2017-1000158: Buffer Overflow

Published Nov 17, 2017
·
Updated

CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyStringDecodeEscape function in stringobject.c, resulting in heap-based buffer overflow (and possible arbitrary code execution)

Affected Software

7 affected componentsFixes available
debian/python2.7
2.7.16-2+deb10u12.7.16-2+deb10u32.7.18-8+deb11u1
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

Remediation

Event History

Nov 17, 2017
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2017-1000158?

CVE-2017-1000158 has a high severity rating due to the potential for a heap-based buffer overflow and arbitrary code execution.

2

How do I fix CVE-2017-1000158?

To fix CVE-2017-1000158, upgrade to Python versions 2.7.16 or higher.

3

What versions of Python are affected by CVE-2017-1000158?

Python versions up to 2.7.13, as well as certain versions from 3.4.0 to 3.4.8 and from 3.5.0 to 3.5.5, are affected by CVE-2017-1000158.

4

What impact does CVE-2017-1000158 have on my systems?

The impact of CVE-2017-1000158 includes possible arbitrary code execution due to an integer overflow vulnerability.

5

Is CVE-2017-1000158 exploitable remotely?

Yes, CVE-2017-1000158 is considered exploitable remotely if an attacker can send specially crafted input to the affected application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203