USN-7271-1: virtualenv vulnerability

Publication date

18 February 2025

Overview

python-virtualenv could be made to crash or run programs as your login if it opened a specially crafted file.


Packages

Details

It was discovered that virtualenv incorrectly handled paths when activating
virtual environments. An attacker could possibly use this issue to execute
arbitrary code.

It was discovered that virtualenv incorrectly handled paths when activating
virtual environments. 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
22.04 jammy python3-virtualenv –  20.13.0+ds-2ubuntu0.1~esm1  
virtualenv –  20.13.0+ds-2ubuntu0.1~esm1  
20.04 focal python3-virtualenv –  20.0.17-1ubuntu0.4+esm1  
virtualenv –  20.0.17-1ubuntu0.4+esm1  

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 ›