---
title: 'USN-5342-3: Python vulnerability | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-5342-3
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-5342-3

---

# USN-5342-3: Python vulnerability

Publication date

23 May 2022

Overview

Python could be made to expose sensitive information.

Releases

[18.04 LTS](https://ubuntu.com/security/notices?release=bionic)

---

Open side navigation

## Packages

* [python3.7](https://ubuntu.com/security/cves?package=python3.7) - An interactive high-level object-oriented language

## Details

USN-5342-1 fixed several vulnerabilities in Python. This update provides
the corresponding fix for [CVE-2021-3426](https://ubuntu.com/security/CVE-2021-3426) for Ubuntu 18.04 ESM.

Original advisory details:

David Schwörer discovered that Python incorrectly handled certain inputs.
An attacker could possibly use this issue to expose sensitive information.
This issue only affected Ubuntu 18.04 LTS. ([CVE-2021-3426](https://ubuntu.com/security/CVE-2021-3426))

It was discovered that Python incorrectly handled certain FTP requests.
An attacker could possibly use this issue to expose sensitive information.
This issue only affected Ubuntu 14.04 ESM, Ubuntu 16.04 ESM, and Ubuntu 18.04 LTS.
([CVE-2021-4189](https://ubuntu.com/security/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](https://ubuntu.com/security/CVE-2022-0391))

## Update instructions

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

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

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

| Ubuntu Release | Package Version |
| --- | --- |
| 18.04 LTS bionic | [python3.7-minimal](https://launchpad.net/ubuntu/+source/python3.7) –  3.7.5-2ubuntu1~18.04.2+esm1   Ubuntu Pro | | |
| [python3.7](https://launchpad.net/ubuntu/+source/python3.7) –  3.7.5-2ubuntu1~18.04.2+esm1   Ubuntu Pro | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2021-3426](https://ubuntu.com/security/CVE-2021-3426)

## Related notices

* [USN-6891-1](https://ubuntu.com/security/notices/USN-6891-1)
* [USN-5342-1](https://ubuntu.com/security/notices/USN-5342-1)
