Live threats

All CVEs / Python

CVE-2017-1000158Python

Critical 9.8 No auth needed

Priority
75
CVSS 3.1
9.8
EPSS
7.9%
probability of exploitation in 30 days · percentile 96
Auth required
No
Published
Nov 17, 2017
Updated
Oct 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-190
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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)

Original NVD text.

What to do

  1. Apply the vendor's security update for Python.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
pythonpython< 2.7.15
pythonpython≥ 3.4.0 < 3.4.8
pythonpython≥ 3.5.0 < 3.5.5
debiandebian_linux7.0
debiandebian_linux8.0
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.