
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
- Severity
- Medium · CVSS 6.5
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Cpe | python | Not reported | 2.7.15 | fixed |
| Cpe | python | Not reported | 3.4.9 | fixed |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | python | Not reported | Not reported | unknown |
| Cpe | debian_linux | Not reported | Not reported | unknown |
| Cpe | debian_linux | Not reported | Not reported | unknown |
| Cpe | ansible_tower | Not reported | Not reported | unknown |
| Cpe | enterprise_linux_desktop | Not reported | Not reported | unknown |
| Cpe | enterprise_linux_server | Not reported | Not reported | unknown |
| Cpe | enterprise_linux_workstation | Not reported | Not reported | unknown |
| Debian | python2.7 | 11 | 2.7.14-7 | fixed |
| Ubuntu | python2.7 | 14.04 | 2.7.5-8ubuntu3 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.5-8ubuntu4 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-2 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-2ubuntu1 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-3 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-3ubuntu1 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-4 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-4ubuntu1 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-5 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-7 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-8 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-8ubuntu0.2 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-8ubuntu0.3 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-8ubuntu0.4 | vulnerable |
| Ubuntu | python2.7 | 14.04 | 2.7.6-8ubuntu0.5 | fixed |
| Ubuntu | python3.4 | 14.04 | 3.4~b1-0ubuntu3 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~b1-4ubuntu4 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~b1-4ubuntu6 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~b1-5ubuntu2 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~b2-1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~b3-1ubuntu1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~rc1-1build1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~rc2-1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4~rc3-0ubuntu1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.0-1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.0-2ubuntu1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.0-2ubuntu1.1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.3-1ubuntu1~14.04.1 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.3-1ubuntu1~14.04.3 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.3-1ubuntu1~14.04.4 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.3-1ubuntu1~14.04.5 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.3-1ubuntu1~14.04.6 | vulnerable |
| Ubuntu | python3.4 | 14.04 | 3.4.3-1ubuntu1~14.04.7 | fixed |
| Ubuntu | python3.5 | pro | 3.5.2-2ubuntu0~16.04.4~14.04.1 | vulnerable |
| Ubuntu | python3.5 | pro | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 | fixed |
| Ubuntu | python2.7 | 16.04 | 2.7.10-4ubuntu1 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.10-4ubuntu2 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.11-2 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.11-3 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.11-4 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.11-6 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.11-7 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.11-7ubuntu1 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.12-1~16.04 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.12-1ubuntu0~16.04.1 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.12-1ubuntu0~16.04.2 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.12-1ubuntu0~16.04.3 | vulnerable |
| Ubuntu | python2.7 | 16.04 | 2.7.12-1ubuntu0~16.04.4 | fixed |
| Ubuntu | python3.5 | 16.04 | 3.5.0-3 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.0-3ubuntu1 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1~rc1-2ubuntu1 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-1 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-2 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-3 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-5 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-6ubuntu1 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-6ubuntu2 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-9ubuntu1 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.1-10 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.2-2~16.01 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.2-2~16.04 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.2-2ubuntu0~16.04.1 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.2-2ubuntu0~16.04.2 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.2-2ubuntu0~16.04.3 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.2-2ubuntu0~16.04.4 | vulnerable |
| Ubuntu | python3.5 | 16.04 | 3.5.2-2ubuntu0~16.04.5 | fixed |
| Alpine | python2 | 3.10 | 2.7.15-r0 | fixed |
| Alpine | python2 | 3.11 | 2.7.15-r0 | fixed |
| Alpine | python2 | 3.12 | 2.7.15-r0 | fixed |
| Alpine | python2 | 3.5 | 2.7.15-r0 | fixed |
| Alpine | python2 | 3.6 | 2.7.15-r0 | fixed |
| Alpine | python2 | 3.7 | 2.7.15-r0 | fixed |
| Alpine | python2 | 3.9 | 2.7.15-r0 | fixed |
| Alpine | python3 | 3.5 | 3.5.6-r0 | fixed |
| Alpine | python3 | 3.6 | 3.6.5-r0 | fixed |
| Alpine | python3 | 3.7 | 3.6.5-r0 | fixed |
| Alpine | python3 | 3.8 | 3.6.6-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Cpe | python | cpe | Not reported | 2.7.15 | Not reported | NVD-CVE-2018-1061 | Not reported |
| Cpe | python | cpe | Not reported | 3.4.9 | Not reported | NVD-CVE-2018-1061 | Not reported |
| Debian | python2.7 | deb | 11 | 2.7.14-7 | Not reported | DEBIAN-CVE-2018-1061 | Not reported |
| Ubuntu | python2.7 | deb | 14.04 | 2.7.6-8ubuntu0.5 | Not reported | UBUNTU-CVE-2018-1061 | Not reported |
| Ubuntu | python3.4 | deb | 14.04 | 3.4.3-1ubuntu1~14.04.7 | Not reported | UBUNTU-CVE-2018-1061 | Not reported |
| Ubuntu | python3.5 | deb | pro | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 | Not reported | UBUNTU-CVE-2018-1061 | Not reported |
| Ubuntu | python2.7 | deb | 16.04 | 2.7.12-1ubuntu0~16.04.4 | Not reported | UBUNTU-CVE-2018-1061 | Not reported |
| Ubuntu | python3.5 | deb | 16.04 | 3.5.2-2ubuntu0~16.04.5 | Not reported | UBUNTU-CVE-2018-1061 | Not reported |
| Alpine | python2 | apk | 3.10 | 2.7.15-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python2 | apk | 3.11 | 2.7.15-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python2 | apk | 3.12 | 2.7.15-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python2 | apk | 3.5 | 2.7.15-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python2 | apk | 3.6 | 2.7.15-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python2 | apk | 3.7 | 2.7.15-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python2 | apk | 3.9 | 2.7.15-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python3 | apk | 3.5 | 3.5.6-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python3 | apk | 3.6 | 3.6.5-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python3 | apk | 3.7 | 3.6.5-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
| Alpine | python3 | apk | 3.8 | 3.6.6-r0 | Not reported | ALPINE-CVE-2018-1061 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2018_3041.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2018-1061]
- [https://osv.dev/vulnerability/ALPINE-CVE-2018-1061]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-1061]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-1061]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-1061.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2018/wid-sec-w-2024-1602.json]
[CERT-Bund public advisories] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]