CVE catalog

CVE-2018-1061

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 se

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
4.92% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
CpepythonNot reported2.7.15fixed
CpepythonNot reported3.4.9fixed
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
CpepythonNot reportedNot reportedunknown
Cpedebian_linuxNot reportedNot reportedunknown
Cpedebian_linuxNot reportedNot reportedunknown
Cpeansible_towerNot reportedNot reportedunknown
Cpeenterprise_linux_desktopNot reportedNot reportedunknown
Cpeenterprise_linux_serverNot reportedNot reportedunknown
Cpeenterprise_linux_workstationNot reportedNot reportedunknown
Debianpython2.7112.7.14-7fixed
Ubuntupython2.714.042.7.5-8ubuntu3vulnerable
Ubuntupython2.714.042.7.5-8ubuntu4vulnerable
Ubuntupython2.714.042.7.6-2vulnerable
Ubuntupython2.714.042.7.6-2ubuntu1vulnerable
Ubuntupython2.714.042.7.6-3vulnerable
Ubuntupython2.714.042.7.6-3ubuntu1vulnerable
Ubuntupython2.714.042.7.6-4vulnerable
Ubuntupython2.714.042.7.6-4ubuntu1vulnerable
Ubuntupython2.714.042.7.6-5vulnerable
Ubuntupython2.714.042.7.6-7vulnerable
Ubuntupython2.714.042.7.6-8vulnerable
Ubuntupython2.714.042.7.6-8ubuntu0.2vulnerable
Ubuntupython2.714.042.7.6-8ubuntu0.3vulnerable
Ubuntupython2.714.042.7.6-8ubuntu0.4vulnerable
Ubuntupython2.714.042.7.6-8ubuntu0.5fixed
Ubuntupython3.414.043.4~b1-0ubuntu3vulnerable
Ubuntupython3.414.043.4~b1-4ubuntu4vulnerable
Ubuntupython3.414.043.4~b1-4ubuntu6vulnerable
Ubuntupython3.414.043.4~b1-5ubuntu2vulnerable
Ubuntupython3.414.043.4~b2-1vulnerable
Ubuntupython3.414.043.4~b3-1ubuntu1vulnerable
Ubuntupython3.414.043.4~rc1-1build1vulnerable
Ubuntupython3.414.043.4~rc2-1vulnerable
Ubuntupython3.414.043.4~rc3-0ubuntu1vulnerable
Ubuntupython3.414.043.4.0-1vulnerable
Ubuntupython3.414.043.4.0-2ubuntu1vulnerable
Ubuntupython3.414.043.4.0-2ubuntu1.1vulnerable
Ubuntupython3.414.043.4.3-1ubuntu1~14.04.1vulnerable
Ubuntupython3.414.043.4.3-1ubuntu1~14.04.3vulnerable
Ubuntupython3.414.043.4.3-1ubuntu1~14.04.4vulnerable
Ubuntupython3.414.043.4.3-1ubuntu1~14.04.5vulnerable
Ubuntupython3.414.043.4.3-1ubuntu1~14.04.6vulnerable
Ubuntupython3.414.043.4.3-1ubuntu1~14.04.7fixed
Ubuntupython3.5pro3.5.2-2ubuntu0~16.04.4~14.04.1vulnerable
Ubuntupython3.5pro3.5.2-2ubuntu0~16.04.4~14.04.1+esm1fixed
Ubuntupython2.716.042.7.10-4ubuntu1vulnerable
Ubuntupython2.716.042.7.10-4ubuntu2vulnerable
Ubuntupython2.716.042.7.11-2vulnerable
Ubuntupython2.716.042.7.11-3vulnerable
Ubuntupython2.716.042.7.11-4vulnerable
Ubuntupython2.716.042.7.11-6vulnerable
Ubuntupython2.716.042.7.11-7vulnerable
Ubuntupython2.716.042.7.11-7ubuntu1vulnerable
Ubuntupython2.716.042.7.12-1~16.04vulnerable
Ubuntupython2.716.042.7.12-1ubuntu0~16.04.1vulnerable
Ubuntupython2.716.042.7.12-1ubuntu0~16.04.2vulnerable
Ubuntupython2.716.042.7.12-1ubuntu0~16.04.3vulnerable
Ubuntupython2.716.042.7.12-1ubuntu0~16.04.4fixed
Ubuntupython3.516.043.5.0-3vulnerable
Ubuntupython3.516.043.5.0-3ubuntu1vulnerable
Ubuntupython3.516.043.5.1~rc1-2ubuntu1vulnerable
Ubuntupython3.516.043.5.1-1vulnerable
Ubuntupython3.516.043.5.1-2vulnerable
Ubuntupython3.516.043.5.1-3vulnerable
Ubuntupython3.516.043.5.1-5vulnerable
Ubuntupython3.516.043.5.1-6ubuntu1vulnerable
Ubuntupython3.516.043.5.1-6ubuntu2vulnerable
Ubuntupython3.516.043.5.1-9ubuntu1vulnerable
Ubuntupython3.516.043.5.1-10vulnerable
Ubuntupython3.516.043.5.2-2~16.01vulnerable
Ubuntupython3.516.043.5.2-2~16.04vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.1vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.2vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.3vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.4vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.5fixed
Alpinepython23.102.7.15-r0fixed
Alpinepython23.112.7.15-r0fixed
Alpinepython23.122.7.15-r0fixed
Alpinepython23.52.7.15-r0fixed
Alpinepython23.62.7.15-r0fixed
Alpinepython23.72.7.15-r0fixed
Alpinepython23.92.7.15-r0fixed
Alpinepython33.53.5.6-r0fixed
Alpinepython33.63.6.5-r0fixed
Alpinepython33.73.6.5-r0fixed
Alpinepython33.83.6.6-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
CpepythoncpeNot reported2.7.15Not reportedNVD-CVE-2018-1061Not reported
CpepythoncpeNot reported3.4.9Not reportedNVD-CVE-2018-1061Not reported
Debianpython2.7deb112.7.14-7Not reportedDEBIAN-CVE-2018-1061Not reported
Ubuntupython2.7deb14.042.7.6-8ubuntu0.5Not reportedUBUNTU-CVE-2018-1061Not reported
Ubuntupython3.4deb14.043.4.3-1ubuntu1~14.04.7Not reportedUBUNTU-CVE-2018-1061Not reported
Ubuntupython3.5debpro3.5.2-2ubuntu0~16.04.4~14.04.1+esm1Not reportedUBUNTU-CVE-2018-1061Not reported
Ubuntupython2.7deb16.042.7.12-1ubuntu0~16.04.4Not reportedUBUNTU-CVE-2018-1061Not reported
Ubuntupython3.5deb16.043.5.2-2ubuntu0~16.04.5Not reportedUBUNTU-CVE-2018-1061Not reported
Alpinepython2apk3.102.7.15-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython2apk3.112.7.15-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython2apk3.122.7.15-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython2apk3.52.7.15-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython2apk3.62.7.15-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython2apk3.72.7.15-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython2apk3.92.7.15-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython3apk3.53.5.6-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython3apk3.63.6.5-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython3apk3.73.6.5-r0Not reportedALPINE-CVE-2018-1061Not reported
Alpinepython3apk3.83.6.6-r0Not reportedALPINE-CVE-2018-1061Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

Observed:

References