USN-5960-1: Python vulnerability

Publication date

16 March 2023

Overview

Python could be made to bypass blocklisting methods if a specially crafted URL was provided.


Packages

  • python2.7 - An interactive high-level object-oriented language
  • python3.10 - An interactive high-level object-oriented language
  • python3.5 - An interactive high-level object-oriented language
  • python3.6 - An interactive high-level object-oriented language
  • python3.8 - An interactive high-level object-oriented language

Details

Yebo Cao discovered that Python incorrectly handled certain URLs.
An attacker could possibly use this issue to bypass blocklisting
methods by supplying a URL that starts with blank characters.

Yebo Cao discovered that Python incorrectly handled certain URLs.
An attacker could possibly use this issue to bypass blocklisting
methods by supplying a URL that starts with blank characters.

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
22.10 kinetic python3.10 –  3.10.7-1ubuntu0.3
22.04 jammy python3.10 –  3.10.6-1~22.04.2ubuntu1
20.04 focal python3.8 –  3.8.10-0ubuntu1~20.04.7
18.04 bionic python2.7 –  2.7.17-1~18.04ubuntu1.11
python3.6 –  3.6.9-1~18.04ubuntu1.12
16.04 xenial python2.7 –  2.7.12-1ubuntu0~16.04.18+esm4  
python3.5 –  3.5.2-2ubuntu0~16.04.13+esm7  
14.04 trusty python2.7 –  2.7.6-8ubuntu0.6+esm14  

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 ›