Bug 2560172 (CVE-2026-115586) - CVE-2026-115586 virtualenv: virtualenv: Arbitrary code execution via unescaped prompt in bash activation script
Summary: CVE-2026-115586 virtualenv: virtualenv: Arbitrary code execution via unescape...
Keywords:
Status: NEW
Alias: CVE-2026-115586
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-23 19:51 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:30 UTC (History)
63 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-23 19:51:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.