USN-5342-2

Type: Security
Severity: Medium
Published: 2022-08-24
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 20.04 LTS (Focal Fossa)

USN-5342-1 fixed several vulnerabilities in Python. This update provides the corresponding update for Ubuntu 14.04 ESM, Ubuntu 20.04 ESM and Ubuntu 22.04 ESM. Original advisory details: It was discovered that Python incorrectly handled certain FTP requests. An attacker could possibly use this issue to expose sensitive information. (CVE-2021-4189) It was discovered that Python incorrectly handled certain inputs. An attacker could possibly use this issue to execute arbitrary code. (CVE-2022-0391) Update Instructions: Run `sudo pro fix USN-5342-2` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: libpython2.7-minimal - 2.7.18-13ubuntu1.1+esm2 libpython2.7 - 2.7.18-13ubuntu1.1+esm2 python2.7 - 2.7.18-13ubuntu1.1+esm2 python2.7-minimal - 2.7.18-13ubuntu1.1+esm2 libpython2.7-testsuite - 2.7.18-13ubuntu1.1+esm2 libpython2.7-dev - 2.7.18-13ubuntu1.1+esm2 idle-python2.7 - 2.7.18-13ubuntu1.1+esm2 python2.7-doc - 2.7.18-13ubuntu1.1+esm2 python2.7-dev - 2.7.18-13ubuntu1.1+esm2 python2.7-examples - 2.7.18-13ubuntu1.1+esm2 libpython2.7-stdlib - 2.7.18-13ubuntu1.1+esm2 Available with Ubuntu Pro: https://ubuntu.com/pro

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T23:47:41.555Z UTC

Official vendor advisory

Ubuntu 22.04 LTS (Jammy Jellyfish)

View source
Observed 2026-11-27T23:47:41.555Z UTC. Last updated 2025-11-26T07:16:49.211Z UTC.

Upstream Advisory

Affected Packages

  • libpython2.7-minimal 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • libpython2.7 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • python2.7 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • python2.7-minimal 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • libpython2.7-testsuite 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • libpython2.7-dev 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • idle-python2.7 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • python2.7-doc 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • python2.7-dev 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • python2.7-examples 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • libpython2.7-stdlib 2.7.18-13ubuntu1.1+esm2-2.7.18-13ubuntu1.1+esm2

  • libpython2.7-minimal 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • libpython2.7 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • python2.7 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • python2.7-minimal 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • libpython2.7-testsuite 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • libpython2.7-dev 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • idle-python2.7 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • python2.7-doc 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • python2.7-dev 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • python2.7-examples 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

  • libpython2.7-stdlib 2.7.18-1~20.04.3+esm1-2.7.18-1~20.04.3+esm1

Interested in being alerted when there are new versions of libpython2.7-minimal and the other packages? Set up an alert.
USN-5342-2: Python vulnerabilities | Package Alert