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: 2581965 2581966 2581967 2581968
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-02 12:56 UTC by OSIDB Bzimport
Modified: 2026-11-23 16:19 UTC (History)
71 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:100715 0 None None None 2026-11-19 19:28:28 UTC
Red Hat Product Errata RHSA-2026:100716 0 None None None 2026-11-19 19:26:44 UTC

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.

Comment 3 errata-xmlrpc 2026-11-19 19:26:40 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.7 for RHEL 9
  Red Hat Ansible Automation Platform 2.7 for RHEL 10

Via RHSA-2026:100716 https://access.redhat.com/errata/RHSA-2026:100716

Comment 4 errata-xmlrpc 2026-11-19 19:28:23 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.6 for RHEL 9
  Red Hat Ansible Automation Platform 2.6 for RHEL 10

Via RHSA-2026:100715 https://access.redhat.com/errata/RHSA-2026:100715


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