USN-7570-1: Python vulnerabilities

Publication date

16 June 2025

Overview

Python could be made to crash or expose sensitive information.


Packages

  • python3.10 - An interactive high-level object-oriented language
  • python3.11 - An interactive high-level object-oriented language
  • python3.12 - An interactive high-level object-oriented language
  • python3.13 - An interactive high-level object-oriented language
  • python3.6 - 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
  • python3.9 - An interactive high-level object-oriented language

Details

It was discovered that Python incorrectly handled certain unicode
characters during decoding. An attacker could possibly use this issue to
cause a denial of service. (CVE-2025-4516)

It was discovered that Python incorrectly handled unicode encoding of email
headers with list separators in folded lines. An attacker could possibly
use this issue to expose sensitive information. (CVE-2025-1795)

It was discovered that Python incorrectly handled certain unicode
characters during decoding. An attacker could possibly use this issue to
cause a denial of service. (CVE-2025-4516)

It was discovered that Python incorrectly handled unicode encoding of email
headers with list separators in folded lines. An attacker could possibly
use this issue to expose sensitive information. (CVE-2025-1795)

Update instructions

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

Learn more about how to get the fixes.

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

Ubuntu Release Package Version
25.04 plucky libpython3.13 –  3.13.3-1ubuntu0.1
libpython3.13-minimal –  3.13.3-1ubuntu0.1
python3.13 –  3.13.3-1ubuntu0.1
python3.13-minimal –  3.13.3-1ubuntu0.1
24.10 oracular libpython3.12-minimal –  3.12.7-1ubuntu2.1
libpython3.12t64 –  3.12.7-1ubuntu2.1
python3.12 –  3.12.7-1ubuntu2.1
python3.12-minimal –  3.12.7-1ubuntu2.1
24.04 noble libpython3.12-minimal –  3.12.3-1ubuntu0.6
libpython3.12t64 –  3.12.3-1ubuntu0.6
python3.12 –  3.12.3-1ubuntu0.6
python3.12-minimal –  3.12.3-1ubuntu0.6
22.04 jammy libpython3.10 –  3.10.12-1~22.04.10
libpython3.10-minimal –  3.10.12-1~22.04.10
libpython3.11 –  3.11.0~rc1-1~22.04.1~esm4  
libpython3.11-minimal –  3.11.0~rc1-1~22.04.1~esm4  
python3.10 –  3.10.12-1~22.04.10
python3.10-minimal –  3.10.12-1~22.04.10
python3.11 –  3.11.0~rc1-1~22.04.1~esm4  
python3.11-minimal –  3.11.0~rc1-1~22.04.1~esm4  
20.04 focal libpython3.8 –  3.8.10-0ubuntu1~20.04.18+esm1  
libpython3.8-minimal –  3.8.10-0ubuntu1~20.04.18+esm1  
libpython3.9 –  3.9.5-3ubuntu0~20.04.1+esm5  
libpython3.9-minimal –  3.9.5-3ubuntu0~20.04.1+esm5  
python3.8 –  3.8.10-0ubuntu1~20.04.18+esm1  
python3.8-minimal –  3.8.10-0ubuntu1~20.04.18+esm1  
python3.9 –  3.9.5-3ubuntu0~20.04.1+esm5  
python3.9-minimal –  3.9.5-3ubuntu0~20.04.1+esm5  
18.04 bionic libpython3.6 –  3.6.9-1~18.04ubuntu1.13+esm5  
libpython3.6-minimal –  3.6.9-1~18.04ubuntu1.13+esm5  
libpython3.7 –  3.7.5-2ubuntu1~18.04.2+esm6  
libpython3.7-minimal –  3.7.5-2ubuntu1~18.04.2+esm6  
libpython3.8 –  3.8.0-3ubuntu1~18.04.2+esm5  
libpython3.8-minimal –  3.8.0-3ubuntu1~18.04.2+esm5  
python3.6 –  3.6.9-1~18.04ubuntu1.13+esm5  
python3.6-minimal –  3.6.9-1~18.04ubuntu1.13+esm5  
python3.7 –  3.7.5-2ubuntu1~18.04.2+esm6  
python3.7-minimal –  3.7.5-2ubuntu1~18.04.2+esm6  
python3.8 –  3.8.0-3ubuntu1~18.04.2+esm5  
python3.8-minimal –  3.8.0-3ubuntu1~18.04.2+esm5  

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.


Have additional questions?

Talk to a member of the team ›