---
title: 'USN-7015-7: Python 2.7 regression | 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-7015-7
---

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

---

# USN-7015-7: Python 2.7 regression

Publication date

29 September 2025

Overview

USN-7015-4 introduced a regression in Python 2.7

Releases

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

---

Open side navigation

## Packages

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

## Details

USN-7015-4 fixed vulnerabilities in Python. It was discovered that the fix
for [CVE-2023-27043](https://ubuntu.com/security/CVE-2023-27043) for python2.7 was incorrectly applied on Ubuntu 16.04
LTS and Ubuntu 18.04 LTS. This update fixes the problem.

We apologize for the inconvenience.

Original advisory details:

It was discovered that the Python email module incorrectly parsed email
addresses that contain special characters. A remote attacker could
possibly use this issue to bypass certain protection mechanisms.
([CVE-2023-27043](https://ubuntu.com/security/CVE-2023-27043))

It was discovered that Python allowed excessive backtracking while parsing
certain tarfile headers. A remote attacker could possibly use this issue
to cause Python to consume resources, leading to a denial of service.
([CVE-2024-6232](https://ubuntu.com/security/CVE-2024-6232))

It was discovered that the Python email module incorrectly quoted newlines
...

---

Show more

## 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 | [libpython2.7](https://launchpad.net/ubuntu/+source/python2.7) –  2.7.17-1~18.04ubuntu1.13+esm13   Ubuntu Pro | | |
| [python2.7](https://launchpad.net/ubuntu/+source/python2.7) –  2.7.17-1~18.04ubuntu1.13+esm13   Ubuntu Pro | | |
| 16.04 LTS xenial | [libpython2.7](https://launchpad.net/ubuntu/+source/python2.7) –  2.7.12-1ubuntu0~16.04.18+esm18   Ubuntu Pro | | |
| [python2.7](https://launchpad.net/ubuntu/+source/python2.7) –  2.7.12-1ubuntu0~16.04.18+esm18   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

* <https://launchpad.net/bugs/2125702>
* [CVE-2023-27043](https://ubuntu.com/security/CVE-2023-27043)

## Related notices

* [USN-7015-1](https://ubuntu.com/security/notices/USN-7015-1)
* [USN-7015-3](https://ubuntu.com/security/notices/USN-7015-3)
* [USN-7015-4](https://ubuntu.com/security/notices/USN-7015-4)
