# PYSEC-2026-4384: virtualenv is a tool for creating isolated virtual python environments

- Database: PyPA
- Also known as: BIT-VIRTUALENV-2026-113725
- Published: 2026-10-20
- Modified: 2026-11-18

## Tracked as

- [CVE-2026-113725](https://cve.now/CVE-2026-113725.md): virtualenv bash activate runs commands from an environment name with a backslash before $

## Also published as

- [GHSA-VXJ4-Q4G9-CRJ7](https://cve.now/GHSA-VXJ4-Q4G9-CRJ7.md) (GitHub)

## Affected versions

- virtualenv (PyPI): fixed in 21.14.7

## 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.

## References

- https://github.com/pypa/virtualenv/releases/tag/21.14.7
- https://github.com/pypa/virtualenv/commit/c3104e02474b652832a9bbaae79f6e1696296932
- https://github.com/pypa/virtualenv/security/advisories/GHSA-vxj4-q4g9-crj7

Page: https://cve.now/PYSEC-2026-4384

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
