Improper input validation in Python - CVE-2018-1061
Published: April 27, 2018
Vulnerability identifier: #VU12282
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-1061
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to cause DoS condition on he target system.
The weakness exists due to the way catastrophic backtracking was implemented in python's difflib.IS_LINE_JUNK method difflib. A remote attacker can cause the service to crash.
The weakness exists due to the way catastrophic backtracking was implemented in python's difflib.IS_LINE_JUNK method difflib. A remote attacker can cause the service to crash.
Affected software
Python
Amazon Linux AMI
Red Hat Enterprise Linux Server
Fedora
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Debian Linux
Red Hat Enterprise Linux for Power
Ubuntu
Slackware Linux
Opensuse
python (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
python2-tkinter (Alpine package)
python2.7 (Debian package)
python2.7-minimal (Ubuntu package)
python2.7 (Ubuntu package)
python3.4 (Ubuntu package)
python3.4-minimal (Ubuntu package)
python3.5 (Debian package)
python3.5-minimal (Ubuntu package)
python3.5 (Ubuntu package)
python3.7-minimal (Ubuntu package)
python3.7 (Ubuntu package)
python3.6-minimal (Ubuntu package)
python3.6 (Ubuntu package)
python3.9-minimal (Ubuntu package)
python3.9 (Ubuntu package)
python3.8-minimal (Ubuntu package)
python3.8 (Ubuntu package)
python3.11-minimal (Ubuntu package)
python3.11 (Ubuntu package)
python27-python-jinja2 (Red Hat package)
python27-python (Red Hat package)
python34
python35
python3
python3-docs
python-pip
python3.10 (Ubuntu package)
python3.10-minimal (Ubuntu package)
python3.12 (Ubuntu package)
python3.12-minimal (Ubuntu package)
Red Hat Software Collections
Amazon Linux AMI
Red Hat Enterprise Linux Server
Fedora
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Debian Linux
Red Hat Enterprise Linux for Power
Ubuntu
Slackware Linux
Opensuse
python (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
python2-tkinter (Alpine package)
python2.7 (Debian package)
python2.7-minimal (Ubuntu package)
python2.7 (Ubuntu package)
python3.4 (Ubuntu package)
python3.4-minimal (Ubuntu package)
python3.5 (Debian package)
python3.5-minimal (Ubuntu package)
python3.5 (Ubuntu package)
python3.7-minimal (Ubuntu package)
python3.7 (Ubuntu package)
python3.6-minimal (Ubuntu package)
python3.6 (Ubuntu package)
python3.9-minimal (Ubuntu package)
python3.9 (Ubuntu package)
python3.8-minimal (Ubuntu package)
python3.8 (Ubuntu package)
python3.11-minimal (Ubuntu package)
python3.11 (Ubuntu package)
python27-python-jinja2 (Red Hat package)
python27-python (Red Hat package)
python34
python35
python3
python3-docs
python-pip
python3.10 (Ubuntu package)
python3.10-minimal (Ubuntu package)
python3.12 (Ubuntu package)
python3.12-minimal (Ubuntu package)
Red Hat Software Collections
How to mitigate CVE-2018-1061
Update to version 3.6.5.
python (Red Hat package) - addressed in versions 2.7.5-63.el7_4, 2.7.5-74.el7_5
python2-tkinter (Alpine package) - update to 2.7.15-r3
python2.7 (Debian package) - update to 2.7.13-2+deb9u3
python2.7-minimal (Ubuntu package) - addressed in versions 2.7.3-0ubuntu3.11, 2.7.6-8ubuntu0.5, 2.7.12-1ubuntu0~16.04.4
python2.7 (Ubuntu package) - addressed in versions 2.7.3-0ubuntu3.11, 2.7.6-8ubuntu0.5, 2.7.12-1ubuntu0~16.04.4
python3.4 (Ubuntu package) - update to 3.4.3-1ubuntu1~14.04.7
python3.4-minimal (Ubuntu package) - update to 3.4.3-1ubuntu1~14.04.7
python3.5 (Debian package) - update to 3.5.3-1+deb9u1
python3.5-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.5.2-2ubuntu0~16.04.5
python3.5 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 3.5.2-2ubuntu0~16.04.5
python3.7-minimal (Ubuntu package) - update to Ubuntu Pro
python3.7 (Ubuntu package) - update to Ubuntu Pro
python3.6-minimal (Ubuntu package) - update to Ubuntu Pro
python3.6 (Ubuntu package) - update to Ubuntu Pro
python3.9-minimal (Ubuntu package) - update to Ubuntu Pro
python3.9 (Ubuntu package) - update to Ubuntu Pro
python3.8-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.8.10-0ubuntu1~20.04.10
python3.8 (Ubuntu package) - addressed in versions Ubuntu Pro, 3.8.10-0ubuntu1~20.04.10
python3.11-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.11.6-3ubuntu0.1
python3.11 (Ubuntu package) - addressed in versions Ubuntu Pro, 3.11.6-3ubuntu0.1
python27-python-jinja2 (Red Hat package) - addressed in versions 2.6-12.el6, 2.6-15.el7
python27-python (Red Hat package) - addressed in versions 2.7.16-4.el6, 2.7.16-4.el7
python34 - addressed in versions 3.4.9-1.el7, 3.4.9-2.fc27, 3.4.9-2.fc28
python35 - addressed in versions 3.5.7-1.fc28, 3.5.7-1.fc29, 3.5.7-1.fc30
python3 - addressed in versions 3.6.5-1.fc26, 3.6.5-1.fc27, 3.6.5-1.fc28
python3-docs - addressed in versions 3.6.5-1.fc26, 3.6.5-1.fc27
python-pip - addressed in versions 9.0.3-1.fc26, 9.0.3-1.fc27
python3.10 (Ubuntu package) - update to 3.10.12-1~22.04.4
python3.10-minimal (Ubuntu package) - update to 3.10.12-1~22.04.4
python3.12 (Ubuntu package) - update to 3.12.0-1ubuntu0.1
python3.12-minimal (Ubuntu package) - update to 3.12.0-1ubuntu0.1
python2-tkinter (Alpine package) - update to 2.7.15-r3
python2.7 (Debian package) - update to 2.7.13-2+deb9u3
python2.7-minimal (Ubuntu package) - addressed in versions 2.7.3-0ubuntu3.11, 2.7.6-8ubuntu0.5, 2.7.12-1ubuntu0~16.04.4
python2.7 (Ubuntu package) - addressed in versions 2.7.3-0ubuntu3.11, 2.7.6-8ubuntu0.5, 2.7.12-1ubuntu0~16.04.4
python3.4 (Ubuntu package) - update to 3.4.3-1ubuntu1~14.04.7
python3.4-minimal (Ubuntu package) - update to 3.4.3-1ubuntu1~14.04.7
python3.5 (Debian package) - update to 3.5.3-1+deb9u1
python3.5-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.5.2-2ubuntu0~16.04.5
python3.5 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 3.5.2-2ubuntu0~16.04.5
python3.7-minimal (Ubuntu package) - update to Ubuntu Pro
python3.7 (Ubuntu package) - update to Ubuntu Pro
python3.6-minimal (Ubuntu package) - update to Ubuntu Pro
python3.6 (Ubuntu package) - update to Ubuntu Pro
python3.9-minimal (Ubuntu package) - update to Ubuntu Pro
python3.9 (Ubuntu package) - update to Ubuntu Pro
python3.8-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.8.10-0ubuntu1~20.04.10
python3.8 (Ubuntu package) - addressed in versions Ubuntu Pro, 3.8.10-0ubuntu1~20.04.10
python3.11-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.11.6-3ubuntu0.1
python3.11 (Ubuntu package) - addressed in versions Ubuntu Pro, 3.11.6-3ubuntu0.1
python27-python-jinja2 (Red Hat package) - addressed in versions 2.6-12.el6, 2.6-15.el7
python27-python (Red Hat package) - addressed in versions 2.7.16-4.el6, 2.7.16-4.el7
python34 - addressed in versions 3.4.9-1.el7, 3.4.9-2.fc27, 3.4.9-2.fc28
python35 - addressed in versions 3.5.7-1.fc28, 3.5.7-1.fc29, 3.5.7-1.fc30
python3 - addressed in versions 3.6.5-1.fc26, 3.6.5-1.fc27, 3.6.5-1.fc28
python3-docs - addressed in versions 3.6.5-1.fc26, 3.6.5-1.fc27
python-pip - addressed in versions 9.0.3-1.fc26, 9.0.3-1.fc27
python3.10 (Ubuntu package) - update to 3.10.12-1~22.04.4
python3.10-minimal (Ubuntu package) - update to 3.10.12-1~22.04.4
python3.12 (Ubuntu package) - update to 3.12.0-1ubuntu0.1
python3.12-minimal (Ubuntu package) - update to 3.12.0-1ubuntu0.1
External References
Related Security Bulletins
- Amazon Linux AMI update for python34, python35, python36
- OpenSUSE Linux update for python
- Amazon Linux AMI update for python27
- Debian update for python3.5
- Debian update for python2.7
- OpenSUSE Linux update for python3
- Red Hat update for python
- Red Hat update for rh-python36-python
- Red Hat Enterprise Linux 7 update for python
- Red Hat Enterprise Linux 7 update for python
- Improper input validation in python2-tkinter (Alpine package)
- Slackware Linux update for python
- Red Hat Software Collections update for python27-python and python27-python-jinja2
- Ubuntu update for python3.10
- Fedora 28 update for python3
- Fedora 27 update for python-pip, python3, python3-docs
- Fedora 26 update for python-pip, python3, python3-docs
- Fedora 28 update for python34
- Fedora 27 update for python34
- Fedora EPEL 7 update for python34
- Fedora 30 update for python35
- Fedora 29 update for python35
- Fedora 28 update for python35
- Ubuntu update for python2.7, python3.4, python3.5
- Ubuntu update for python2.7