Skip to content
OpenAdvisories
Medium · 6.5 CVE-2018-1061 EUVD-2018-11714GHSA-gf62-w85x-fjpv

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 m…

Published Jun 19, 2018 · Updated Oct 15, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
[UNKNOWN] python python 2.7.15, python 3.4.9, python 3.5.6, python 3.7.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 python2.7 2.7.14-7 —
Debian 9 python2.7 2.7.13-2+deb9u3 DSA-4306-1
Debian 9 python3.5 3.5.3-1+deb9u1 DSA-4307-1
Debian 8 python2.7 2.7.9-2+deb8u2 DLA-1519-1
Debian 8 python3.4 3.4.2-1+deb8u1 DLA-1520-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python3.10 3.10.12-1~22.04.4 USN-6891-1
Ubuntu 20.04 LTS python3.8 3.8.10-0ubuntu1~20.04.10 USN-6891-1
Ubuntu 18.04 LTS python2.7 2.7.15~rc1-1ubuntu0.1 USN-3817-1
Ubuntu 16.04 LTS python2.7 2.7.12-1ubuntu0~16.04.4 USN-3817-1
Ubuntu 16.04 LTS python3.5 3.5.2-2ubuntu0~16.04.5 USN-3817-1
Ubuntu 14.04 LTS python2.7 2.7.6-8ubuntu0.5 USN-3817-1
Ubuntu 14.04 LTS python3.4 3.4.3-1ubuntu1~14.04.7 USN-3817-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS python3.11 3.11.0~rc1-1~22.04.1~esm1 USN-6891-1
Ubuntu Pro 20.04 LTS python3.9 3.9.5-3ubuntu0~20.04.1+esm2 USN-6891-1
Ubuntu Pro 18.04 LTS python3.6 3.6.9-1~18.04ubuntu1.13+esm2 USN-6891-1
Ubuntu Pro 18.04 LTS python3.7 3.7.5-2ubuntu1~18.04.2+esm3 USN-6891-1
Ubuntu Pro 18.04 LTS python3.8 3.8.0-3ubuntu1~18.04.2+esm2 USN-6891-1
Ubuntu Pro 16.04 LTS python3.5 3.5.2-2ubuntu0~16.04.13+esm13 USN-6891-1
Ubuntu Pro 14.04 LTS python3.5 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 USN-6891-1
ReleasePackageFixed inAdvisory
RHEL 7 python +6 2.7.5-76.el7 RHSA-2018:3041
RHEL 3 python27-python +6 2.7.16-4.el6 RHSA-2019:1260
RHEL 3 python27-python-jinja2 2.6-12.el6 RHSA-2019:1260
RHEL 3 rh-python36-python +6 3.6.9-2.el6 RHSA-2019:3725
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 7.5 EUS python +6 2.7.5-74.el7_5 RHSA-2020:1268
RHEL 7.4 TUS python +6 2.7.5-63.el7_4 RHSA-2020:1346
RHEL 7.4 E4S python +6 2.7.5-63.el7_4 RHSA-2020:1346
RHEL 7.4 AUS python +6 2.7.5-63.el7_4 RHSA-2020:1346
ReleasePackageFixed inAdvisory
SLES 15 SP1 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 SP1 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 15 SP1 python3 +1 3.6.10-3.42.2 SUSE-SU-2020:0114-1
SLES 15 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 15 python3 +1 3.6.10-3.42.2 SUSE-SU-2020:0114-1
SLES 12 SP4 python +2 2.7.13-28.16.1 SUSE-SU-2018:3554-2
SLES 12 SP3 python +2 2.7.13-28.16.1 SUSE-SU-2018:3554-1
SLES 12 SP3 python3 +1 3.4.6-25.16.1 SUSE-SU-2018:2696-1
SLES 12 python3 +1 3.4.6-25.16.1 SUSE-SU-2018:2696-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP4 python +1 2.6.9-40.15.1 SUSE-SU-2018:2408-1
SLES 11 SP4 python-doc 2.6-8.40.15.1 SUSE-SU-2018:2408-1
SLES 11 SP3 python +1 2.6.9-40.15.1 SUSE-SU-2018:2408-1
SLES 11 SP3 python-doc 2.6-8.40.15.1 SUSE-SU-2018:2408-1
SLES 2 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 2 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES for SAP 12 SP4 python +2 2.7.13-28.16.1 SUSE-SU-2018:3554-2
SLES for SAP 12 SP3 python +2 2.7.13-28.16.1 SUSE-SU-2018:3554-1
SLES for SAP 12 SP3 python3 +1 3.4.6-25.16.1 SUSE-SU-2018:2696-1
SLES for SAP 11 SP4 python +1 2.6.9-40.15.1 SUSE-SU-2018:2408-1
SLES for SAP 11 SP4 python-doc 2.6-8.40.15.1 SUSE-SU-2018:2408-1
SUSE Linux Enterprise Point of Sale 11 SP3 python +1 2.6.9-40.15.1 SUSE-SU-2018:2408-1
SUSE Linux Enterprise Point of Sale 11 SP3 python-doc 2.6-8.40.15.1 SUSE-SU-2018:2408-1
SUSE Enterprise Storage 5 python 2.7.13-28.16.1 SUSE-SU-2018:3554-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python 2.7.18-8.1 openSUSE-SU-2024:11202-1
openSUSE Tumbleweed python36 3.6.15-1.1 openSUSE-SU-2024:11284-1
openSUSE Leap 15.1 python3 +1 3.6.10-lp151.6.7.1 openSUSE-SU-2020:0086-1
ReleasePackageFixed inAdvisory
Alpine v3.15 python2 2.7.15-r0 —
Alpine v3.14 python2 2.7.15-r0 —
Alpine v3.13 python2 2.7.15-r0 —
Alpine v3.12 python2 2.7.15-r0 —
Alpine v3.11 python2 +1 2.7.15-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.10 python2 +1 2.7.15-r0 —
Alpine v3.9 python2 +1 2.7.15-r0 —
Alpine v3.8 python3 3.6.6-r0 —
Alpine v3.7 python2 2.7.15-r0 —
Alpine v3.7 python3 3.6.5-r0 —
Alpine v3.6 python2 2.7.15-r0 —
Alpine v3.6 python3 3.6.5-r0 —
Alpine v3.5 python2 2.7.15-r0 —
Alpine v3.5 python3 3.5.6-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python +6 2.7.16-1.amzn2.0.1 ALAS2-2019-1230

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-py No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 python +6 2.7.5-76.0.1.el7 ELSA-2018-3041

Advisories 23

References