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.
High CVSS 7.5
- CVE id
- CVE-2018-1061
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
< 2.7.15 >= 3.0, < 3.4.9 >= 3.5.0, <= 3.5.5 >= 3.6, <= 3.6.4 |
2.7.15, 3.4.9 |
How to fix it
Upgrade Python to the fixed release of the line you run: 2.7.15, 3.4.9.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.ISLINEJUNK method. An attacker could use this flaw to cause denial of service.
References
- CVE-2018-1061 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-1061
- Web: https://access.redhat.com/errata/RHBA-2019:0327
- Web: https://access.redhat.com/errata/RHSA-2018:3041
- Web: https://access.redhat.com/errata/RHSA-2018:3505
- Web: https://access.redhat.com/errata/RHSA-2019:1260
- Web: https://access.redhat.com/errata/RHSA-2019:3725
- Web: https://bugs.python.org/issue32981
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1061
- Web: https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-6-release-candidate-1
- Web: https://docs.python.org/3.6/whatsnew/changelog.html#python-3-6-5-release-candidate-1
- Web: https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html
- Web: https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46PVWY5LFP4BRPG3BVQ5QEEFYBVEXHCK/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEZ5IQT7OF7Q2NCGIVABOWYGKO7YU3NJ/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JSKPGPZQNTAULHW4UH63KGOOUIDE4RRB/
- Web: https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbst03951en_us
- Web: https://usn.ubuntu.com/3817-1/
- Web: https://usn.ubuntu.com/3817-2/
- Web: https://www.debian.org/security/2018/dsa-4306
- Web: https://www.debian.org/security/2018/dsa-4307
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.