PYSEC-2026-4402

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/virtualenv/PYSEC-2026-4402.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-4402
Aliases
Published
2026-10-23T20:17:21Z
Modified
2026-11-25T10:10:37Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

virtualenv is a tool for creating isolated virtual python environments. From 21.14.9 until 21.14.13, the bash bin/activate script can copy an attacker-controlled --prompt value into PS1 without escaping dollar signs or backticks when both promptvars and POSIX mode are disabled during activation. Re-enabling promptvars, running set -o posix, or starting an interactive child bash that inherits the exported PS1 can then expand command substitution in the stored VIRTUAL_ENV_PROMPT value and execute commands as the user who activates the environment. This issue is fixed in version 21.14.13.

References

Affected packages

PyPI / virtualenv

Package

Name
virtualenv
View open source insights on deps.dev
Purl
pkg:pypi/virtualenv

Affected ranges

Type
ECOSYSTEM
Events
Introduced
21.14.9
Fixed
21.14.13

Affected versions

21.*
21.14.9
21.14.10
21.14.11
21.14.12

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/virtualenv/PYSEC-2026-4402.yaml"