USN-6354-1: Python vulnerability

Publication date

7 September 2023

Overview

Python could be made to crash or leak sensitive information if it received specially crafted input.


Packages

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

Details

It was discovered that Python did not properly handle XML entity
declarations in plist files. An attacker could possibly use this
vulnerability to perform an XML External Entity (XXE) injection,
resulting in a denial of service or information disclosure.

It was discovered that Python did not properly handle XML entity
declarations in plist files. An attacker could possibly use this
vulnerability to perform an XML External Entity (XXE) injection,
resulting in a denial of service or information disclosure.

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
18.04 bionic libpython2.7 –  2.7.17-1~18.04ubuntu1.13+esm1  
libpython2.7-stdlib –  2.7.17-1~18.04ubuntu1.13+esm1  
python2.7 –  2.7.17-1~18.04ubuntu1.13+esm1  
python2.7-minimal –  2.7.17-1~18.04ubuntu1.13+esm1  
16.04 xenial libpython2.7 –  2.7.12-1ubuntu0~16.04.18+esm6  
libpython2.7-stdlib –  2.7.12-1ubuntu0~16.04.18+esm6  
libpython3.5 –  3.5.2-2ubuntu0~16.04.13+esm9  
libpython3.5-stdlib –  3.5.2-2ubuntu0~16.04.13+esm9  
python2.7 –  2.7.12-1ubuntu0~16.04.18+esm6  
python2.7-minimal –  2.7.12-1ubuntu0~16.04.18+esm6  
python3.5 –  3.5.2-2ubuntu0~16.04.13+esm9  
python3.5-minimal –  3.5.2-2ubuntu0~16.04.13+esm9  
14.04 trusty libpython2.7 –  2.7.6-8ubuntu0.6+esm16  
libpython2.7-stdlib –  2.7.6-8ubuntu0.6+esm16  
python2.7 –  2.7.6-8ubuntu0.6+esm16  
python2.7-minimal –  2.7.6-8ubuntu0.6+esm16  

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 ›