Vulnerabilities

CVE-2017-1000158

Critical 9.8 CVSS 3.1

Description

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)

Description as published by the source, in English.

Key facts

Published
2017-11-17
Last modified
2026-10-08
Assigned by
cve@mitre.org
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
8.2 % higher than 94 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Debian Debian Linux 7.0 Affected
Debian Debian Linux 8.0 Affected
Debian Debian Linux 9.0 Affected
Python Python < 2.7.15 Affected
Python Python ≥ 3.4.0, < 3.4.8 Affected
Python Python ≥ 3.5.0, < 3.5.5 Affected

Weakness type

  • CWE-190: Integer Overflow or Wraparound

    The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is i…

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities