Bug 2545168 (CVE-2026-102937) - CVE-2026-102937 virtualenv: virtualenv: Arbitrary code execution via unescaped prompt in Windows activation script
Summary: CVE-2026-102937 virtualenv: virtualenv: Arbitrary code execution via unescape...
Keywords:
Status: NEW
Alias: CVE-2026-102937
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-02 12:56 UTC by OSIDB Bzimport
Modified: 2026-10-05 17:26 UTC (History)
69 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-02 12:56:56 UTC
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, BatchActivator.quote() returns prompt text unchanged before activate.bat inserts it into a cmd.exe set "VAR=value" statement. An attacker who influences --prompt, VIRTUALENV_PROMPT, or the corresponding configuration value can include a double quote that closes the assignment and leaves following cmd.exe operators as executable syntax. When a user activates the generated Windows environment, the injected commands run with that user's privileges. This issue is fixed in version 21.7.12.


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