Intel

AIKIDO-2024-10371

virtualenv is vulnerable to Command Injection

Command InjectionCVE-2024-53899 Published Oct 25, 2024

54

Medium Risk

This Affects:

pythonvirtualenv
0.0.1 - 20.26.5
Fixed in 20.26.6
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to command injection due to improperly quoted string placeholders in activation scripts via the ViaTemplateActivator class. The vulnerability arises in several shell activation scripts that use placeholders like __VIRTUAL_ENV__ without proper sanitization or quoting, allowing attackers to inject arbitrary commands into the execution flow.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

virtualenv is vulnerable to Command Injection in versions 0.0.1 - 20.26.5.

How to fix this

Upgrade the virtualenv library to the patch version.