USN-5225-1: lxml vulnerability

Publication date

12 January 2022

Overview

lxml could be made to execute arbitrary code if it received a specially crafted XML or HTML file.


Packages

  • lxml - pythonic binding for the libxml2 and libxslt libraries

Details

It was discovered that lxml incorrectly handled certain XML and HTML files.
An attacker could possibly use this issue to execute arbitrary code.

It was discovered that lxml incorrectly handled certain XML and HTML files.
An attacker could possibly use this issue to execute arbitrary code.

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
21.10 impish python3-lxml –  4.6.3+dfsg-0.1ubuntu0.2
21.04 hirsute python3-lxml –  4.6.3-1ubuntu0.2
20.04 focal python-lxml –  4.5.0-1ubuntu0.5
python3-lxml –  4.5.0-1ubuntu0.5
18.04 bionic python-lxml –  4.2.1-1ubuntu0.6
python3-lxml –  4.2.1-1ubuntu0.6
16.04 xenial python-lxml –  3.5.0-1ubuntu0.4+esm2  
python3-lxml –  3.5.0-1ubuntu0.4+esm2  
14.04 trusty python-lxml –  3.3.3-1ubuntu0.2+esm5  
python3-lxml –  3.3.3-1ubuntu0.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 ›