USN-4754-3: Python vulnerabilities

12 March 2021

Several security issues were fixed in Python 2.7 and Python 3.8.

Releases

Packages

  • python2.7 - An interactive high-level object-oriented language
  • python3.7 - An interactive high-level object-oriented language
  • python3.8 - An interactive high-level object-oriented language

Details

USN-4754-1 fixed vulnerabilities in Python. This update provides
the corresponding updates for Ubuntu 18.04 and Ubuntu 20.04.

In the case of Python 2.7 for 20.04, these additional fixes are included:

It was dicovered that Python allowed remote attackers to cause a denial of
service (resource consumption) via a ZIP bomb. (CVE-2019-9674)

It was discovered that Python had potentially misleading information about
whether sorting occurs. This fix updates the documentation about it.
(CVE-2019-17514)

It was discovered that Python incorrectly handled certain TAR archives.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2019-20907)

It was discovered that Python allowed an HTTP server to conduct Regular
Expression Denial of Service (ReDoS) attacks against a client because of
urllib.request.AbstractBasicAuthHandler catastrophic backtracking.
(CVE-2020-8492)

It was discovered that Python allowed CRLF injection if the attacker controls
the HTTP request method, as demonstrated by inserting CR and LF control
characters in the first argument of HTTPConnection.request. (CVE-2020-26116)

Original advisory details:

It was discovered that Python incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code
or cause a denial of service. (CVE-2020-27619, CVE-2021-3177)

Update instructions

The problem can be corrected by updating your system to the following package versions:

Ubuntu 20.04
Ubuntu 18.04

In general, a standard system update will make all the necessary changes.

Related notices

  • USN-4581-1: python2.7-doc, python3.4-dev, libpython3.4-minimal, python2.7-dev, python3.4-doc, libpython2.7-dev, libpython3.4-stdlib, python3.5-minimal, python3.4-examples, idle-python3.5, python2.7, idle-python3.4, libpython2.7-minimal, python3.4-venv, python3.5, libpython3.4-dev, python3.6-doc, python3.6-minimal, libpython3.5, libpython3.4-testsuite, python3.6-examples, python3.4-minimal, python3.5-examples, libpython3.4, python2.7-examples, python2.7-minimal, python3.4, python3.5-venv, libpython2.7, libpython3.6, python3.5-doc, idle-python3.6, libpython3.6-stdlib, python3.6-venv, libpython3.5-dev, libpython3.5-testsuite, python3.6-dev, libpython3.6-minimal, libpython2.7-testsuite, libpython3.6-testsuite, python3.5-dev, idle-python2.7, libpython3.5-stdlib, python3.6, libpython3.5-minimal, libpython2.7-stdlib, libpython3.6-dev
  • USN-4333-1: libpython3.7-testsuite, python2.7-doc, python3.4-dev, libpython3.4-minimal, python2.7-dev, python3.4-doc, libpython2.7-dev, libpython3.4-stdlib, python3.5-minimal, python3.7-venv, python3.4-examples, python3.7, idle-python3.5, python2.7, idle-python3.4, libpython2.7-minimal, python3.7-examples, python3.4-venv, python3.5, libpython3.4-dev, python3.6-doc, python3.6-minimal, libpython3.5, libpython3.4-testsuite, python3.6-examples, libpython3.7-dev, python3.4-minimal, python3.5-examples, libpython3.4, python2.7-examples, python2.7-minimal, python3.4, python3.5-venv, libpython2.7, libpython3.6, python3.5-doc, idle-python3.6, python3.7-minimal, libpython3.6-stdlib, python3.6-venv, libpython3.5-dev, libpython3.7-minimal, libpython3.7-stdlib, libpython3.5-testsuite, python3.6-dev, libpython3.6-minimal, libpython2.7-testsuite, libpython3.6-testsuite, python3.5-dev, idle-python2.7, python3.7-doc, python3.7-dev, libpython3.7, libpython3.5-stdlib, python3.6, idle-python3.7, libpython3.5-minimal, libpython2.7-stdlib, libpython3.6-dev
  • USN-4428-1: libpython3.8-dev, python2.7-doc, python3.4-dev, libpython3.4-minimal, python2.7-dev, python3.4-doc, python3.8-venv, libpython2.7-dev, libpython3.4-stdlib, python3.5-minimal, python3.4-examples, idle-python3.5, python2.7, idle-python3.4, libpython2.7-minimal, python3.4-venv, python3.5, libpython3.4-dev, python3.6-doc, python3.6-minimal, libpython3.5, libpython3.4-testsuite, python3.6-examples, idle-python3.8, python3.4-minimal, python3.5-examples, libpython3.4, python2.7-examples, python2.7-minimal, python3.4, python3.8-minimal, python3.5-venv, libpython2.7, libpython3.6, libpython3.8-stdlib, libpython3.8-testsuite, python3.5-doc, idle-python3.6, python3.8-doc, python3.8-examples, libpython3.6-stdlib, python3.6-venv, libpython3.5-dev, libpython3.8, libpython3.5-testsuite, python3.6-dev, python3.8, libpython3.6-minimal, libpython2.7-testsuite, libpython3.6-testsuite, python3.5-dev, idle-python2.7, libpython3.8-minimal, python3.8-dev, libpython3.5-stdlib, python3.6, libpython3.5-minimal, libpython2.7-stdlib, libpython3.6-dev
  • USN-4754-1: libpython3.8-dev, python2.7-doc, python3.4-dev, libpython3.4-minimal, python2.7-dev, python3.4-doc, python3.8-venv, libpython2.7-dev, libpython3.4-stdlib, python3.5-minimal, python3.4-examples, idle-python3.5, python2.7, idle-python3.4, libpython2.7-minimal, python3.4-venv, python3.5, libpython3.4-dev, python3.6-doc, python3.6-minimal, libpython3.5, libpython3.4-testsuite, python3.6-examples, idle-python3.8, python3.4-minimal, python3.5-examples, libpython3.4, python2.7-examples, python2.7-minimal, python3.4, python3.8-minimal, python3.5-venv, libpython2.7, libpython3.6, libpython3.8-stdlib, libpython3.8-testsuite, python3.5-doc, idle-python3.6, python3.8-doc, python3.8-examples, libpython3.6-stdlib, python3.6-venv, libpython3.5-dev, libpython3.8, libpython3.5-testsuite, python3.6-dev, python3.8, libpython3.6-minimal, libpython2.7-testsuite, libpython3.6-testsuite, python3.5-dev, idle-python2.7, libpython3.8-minimal, python3.8-dev, libpython3.5-stdlib, python3.6, libpython3.5-minimal, libpython2.7-stdlib, libpython3.6-dev
  • USN-4333-2: libpython3.8-dev, python3.8-minimal, libpython3.8-stdlib, libpython3.8-testsuite, libpython3.8-minimal, python3.8-dev, python3.8-doc, python3.8-examples, python3.8-venv, libpython3.8, idle-python3.8, python3.8
  • USN-4754-4: libpython2.7-minimal, libpython2.7-testsuite, python2.7-examples, idle-python2.7, python2.7-doc, libpython2.7, python2.7-dev, libpython2.7-dev, python2.7, python2.7-minimal, libpython2.7-stdlib