CVE-2018-1061
published medium CVSS 3.0 · 6.5python: DOS via regular expression backtracking in difflib.IS_LINE_JUNK method in difflib
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| [UNKNOWN] | — | pythonpython 2.7.15 · python 3.4.9 · python 3.5.6 · python 3.7.0 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2019-1230 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 7 | pythonaarch64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Red Hat Enterprise Linux | RHEL-7 | pythonaarch64 | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| SUSE / openSUSE | SLE-11-SP3 | pythoni586 | Advisory build | 2.6.9-40.15.1 | SUSE-SU-2018:2408-1 |
| Alpine Linux | v3.10 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Debian | jessie | python2.7 | Advisory build | 2.7.9-2+deb8u2 | DLA-1519-1 |
| Oracle Linux | 7 | pythonx86_64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-7 | pythonppc64 | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | pythonppc64 | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| Red Hat Enterprise Linux | RHEL-7 | pythonppc64le | Advisory build | 2.7.5-63.el7_4 | RHSA-2020:1346 |
| Red Hat Enterprise Linux | RHEL-7 | pythonppc64le | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | pythonppc64le | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| Red Hat Enterprise Linux | RHEL-7 | pythons390x | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | pythons390x | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| Red Hat Enterprise Linux | RHEL-7 | pythonsrc | Advisory build | 2.7.5-63.el7_4 | RHSA-2020:1346 |
| Red Hat Enterprise Linux | RHEL-7 | pythonsrc | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | pythonsrc | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| Red Hat Enterprise Linux | RHEL-7 | pythonx86_64 | Advisory build | 2.7.5-63.el7_4 | RHSA-2020:1346 |
| Red Hat Enterprise Linux | RHEL-7 | pythonx86_64 | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | pythonx86_64 | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| SUSE / openSUSE | SLE-11-SP3 | pythons390x | Advisory build | 2.6.9-40.15.1 | SUSE-SU-2018:2408-1 |
| SUSE / openSUSE | SLE-11-SP3 | pythonx86_64 | Advisory build | 2.6.9-40.15.1 | SUSE-SU-2018:2408-1 |
| SUSE / openSUSE | SLE-12-SP3 | pythonaarch64 | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-1 |
| SUSE / openSUSE | SLE-12-SP3 | pythonppc64le | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-1 |
| SUSE / openSUSE | SLE-12-SP3 | pythons390x | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-1 |
| SUSE / openSUSE | SLE-12-SP3 | pythonx86_64 | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-1 |
| SUSE / openSUSE | SLE-12-SP4 | pythonaarch64 | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-2 |
| SUSE / openSUSE | SLE-12-SP4 | pythonppc64le | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-2 |
| SUSE / openSUSE | SLE-12-SP4 | pythons390x | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-2 |
| SUSE / openSUSE | SLE-12-SP4 | pythonx86_64 | Advisory build | 2.7.13-28.16.1 | SUSE-SU-2018:3554-2 |
| SUSE / openSUSE | SLE-15 | pythonaarch64 | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | SLE-15 | pythonppc64le | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | SLE-15 | pythons390x | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | SLE-15 | pythonx86_64 | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | SLE-15-SP1 | pythonaarch64 | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | SLE-15-SP1 | pythonppc64le | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | SLE-15-SP1 | pythons390x | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | SLE-15-SP1 | pythonx86_64 | Advisory build | 2.7.17-7.32.2 | SUSE-SU-2020:0234-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pythonaarch64 | Advisory build | 2.7.18-8.1 | OPENSUSE-SU-2024:11202-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pythonppc64le | Advisory build | 2.7.18-8.1 | OPENSUSE-SU-2024:11202-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pythons390x | Advisory build | 2.7.18-8.1 | OPENSUSE-SU-2024:11202-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | pythonx86_64 | Advisory build | 2.7.18-8.1 | OPENSUSE-SU-2024:11202-1 |
| Alpine Linux | v3.10 | python2-tkinter | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.11 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.11 | python2-tkinter | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.12 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.13 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.14 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.15 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.5 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.5 | python3 | Fixed | 3.5.6-r0 | Package fix record |
| Alpine Linux | v3.6 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.6 | python3 | Fixed | 3.6.5-r0 | Package fix record |
| Alpine Linux | v3.7 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.7 | python3 | Fixed | 3.6.5-r0 | Package fix record |
| Alpine Linux | v3.8 | python3 | Fixed | 3.6.6-r0 | Package fix record |
| Alpine Linux | v3.9 | python2 | Fixed | 2.7.15-r0 | Package fix record |
| Alpine Linux | v3.9 | python2-tkinter | Fixed | 2.7.15-r0 | Package fix record |
| Debian | jessie | python3.4 | Advisory build | 3.4.2-1+deb8u1 | DLA-1520-1 |
| Debian | stretch | python2.7 | Advisory build | 2.7.13-2+deb9u3 | DSA-4306-1 |
| Debian | stretch | python3.5 | Advisory build | 3.5.3-1+deb9u1 | DSA-4307-1 |
| Oracle Linux | 7 | python-debugaarch64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-debugx86_64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-develaarch64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-develx86_64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-libsaarch64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-libsx86_64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-testaarch64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-testx86_64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-toolsaarch64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | python-toolsx86_64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | tkinteraarch64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Oracle Linux | 7 | tkinterx86_64 | Advisory build | 0:2.7.5-76.0.1.el7 | ELSA-2018-3041 |
| Red Hat Enterprise Linux | RHEL-6 | python27-pythonsrc | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-pythonx86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-debugx86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-debuginfox86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-develx86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-jinja2noarch | Advisory build | 2.6-12.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-jinja2src | Advisory build | 2.6-12.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-libsx86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-testx86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-python-toolsx86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | python27-tkinterx86_64 | Advisory build | 2.7.16-4.el6 | RHSA-2019:1260 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-pythonsrc | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-pythonx86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-python-debugx86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-python-debuginfox86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-python-develx86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-python-libsx86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-python-testx86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-python-tkinterx86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-6 | rh-python36-python-toolsx86_64 | Advisory build | 3.6.9-2.el6 | RHSA-2019:3725 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugaarch64 | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugppc64 | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugppc64 | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugppc64le | Advisory build | 2.7.5-63.el7_4 | RHSA-2020:1346 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugppc64le | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugppc64le | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugs390x | Advisory build | 2.7.5-74.el7_5 | RHSA-2020:1268 |
| Red Hat Enterprise Linux | RHEL-7 | python-debugs390x | Advisory build | 2.7.5-76.el7 | RHSA-2018:3041 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| [UNKNOWN] | python | python 2.7.15 (affected)python 3.4.9 (affected)python 3.5.6 (affected)python 3.7.0 (affected) | redhat · cna |
Weaknesses
1- CWE-20
References
21- openSUSE-SU-2020:0086 http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- 1042001 http://www.securitytracker.com/id/1042001
- RHBA-2019:0327 https://access.redhat.com/errata/RHBA-2019:0327
- RHSA-2018:3041 https://access.redhat.com/errata/RHSA-2018:3041
- RHSA-2018:3505 https://access.redhat.com/errata/RHSA-2018:3505
- RHSA-2019:1260 https://access.redhat.com/errata/RHSA-2019:1260
- RHSA-2019:3725 https://access.redhat.com/errata/RHSA-2019:3725
- https://bugs.python.org/issue32981
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1061
- https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-6-release-candidate-1
- https://docs.python.org/3.6/whatsnew/changelog.html#python-3-6-5-release-candidate-1
- [debian-lts-announce] 20180925 [SECURITY] [DLA 1519-1] python2.7 security update https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
- [debian-lts-announce] 20180926 [SECURITY] [DLA 1520-1] python3.4 security update https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
- FEDORA-2019-51f1e08207 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46PVWY5LFP4BRPG3BVQ5QEEFYBVEXHCK/
- FEDORA-2019-cf725dd20b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEZ5IQT7OF7Q2NCGIVABOWYGKO7YU3NJ/
- FEDORA-2019-6e1938a3c5 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JSKPGPZQNTAULHW4UH63KGOOUIDE4RRB/
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbst03951en_us
- USN-3817-1 https://usn.ubuntu.com/3817-1/
- USN-3817-2 https://usn.ubuntu.com/3817-2/
- DSA-4306 https://www.debian.org/security/2018/dsa-4306
- DSA-4307 https://www.debian.org/security/2018/dsa-4307
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f9523458b5ad1721b2fd09441ea263f57edec38a376a35fc97d3505365eec02e
- Ingested
- 15 Oct 2026, 17:54:56 UTC
- Source record
- Official CVE record