Arbitrary Command Injection Affecting python-virtualenv package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU2004-PYTHONVIRTUALENV-8422352
  • published19 Feb 2025
  • disclosed24 Nov 2024

Introduced: 24 Nov 2024

CVE-2024-53899  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 python-virtualenv.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-virtualenv package and not the python-virtualenv package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Magic template strings are not quoted correctly when replacing. NOTE: this is not the same as CVE-2024-9287.

CVSS Scores

version 3.1