USN-5342-2
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
Last supporting evidence check: 2026-11-27T23:47:41.555Z 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