CVE-2018-1061 Denial of service in python

Medium 6.5 Published Updated

An attacker can cause a denial of service in Python applications by exploiting catastrophic backtracking in the difflib module.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-1061?

CVE-2018-1061 is a medium-severity denial of service vulnerability in Canonical Ubuntu Linux, published on 19 Jun 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2018-1061?

It affects 8 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Python Python, Redhat Ansible Tower, Redhat Enterprise Linux Desktop and 2 more.

How do I fix CVE-2018-1061?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-1061 being exploited?

There is no known exploitation of CVE-2018-1061 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-1061, AZL-109626, DEBIAN-CVE-2018-1061, GHSA-gf62-w85x-fjpv, PSF-2018-4, UBUNTU-CVE-2018-1061.

Is CVE-2018-1061 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free