Live threats

All CVEs / Python

CVE-2018-1061Python

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
4.7%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Jun 19, 2018
Updated
Oct 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

python before versions 2.7.15, 3.4.9, 3.5.6rc1, 3.6.5rc1 and 3.7.0 is vulnerable to catastrophic backtracking in the difflib.IS_LINE_JUNK method. An attacker could use this flaw to cause denial of service.

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.0 < 3.4.9
pythonpython≥ 3.5.0 ≤ 3.5.5
pythonpython≥ 3.6 ≤ 3.6.4
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
pythonpython3.7.0
debiandebian_linux8.0
debiandebian_linux9.0
redhatansible_tower3.3
redhatenterprise_linux_desktop7.0
redhatenterprise_linux_server7.0
redhatenterprise_linux_workstation7.0
canonicalubuntu_linux12.04
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
fedoraprojectfedora28
fedoraprojectfedora29
fedoraprojectfedora30

Official sources

References

Links published by the sources. Open them with care.