What’s Vulnerable › Vulnerabilities

CVE-2026-113725: virtualenv bash activate runs commands from an environment name with a backslash before $

Description

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.

Affected products

How to fix

Upgrade to a fixed version: Pypi Virtualenv 21.14.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-113725 or the next vulnerability affects your stack