CWE
119 190
Advisory Published
Updated

CVE-2017-1000158: Buffer Overflow

First published: Fri Nov 17 2017(Updated: )

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)

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
debian/python2.7
2.7.16-2+deb10u1
2.7.16-2+deb10u3
2.7.18-8+deb11u1
Python 2.7<2.7.15
Python 2.7>=3.4.0<3.4.8
Python 2.7>=3.5.0<3.5.5
Debian Linux=7.0
Debian Linux=8.0
Debian Linux=9.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • How do I fix CVE-2017-1000158?

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

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203