PT-2026-102925 · Pypi · Virtualenv

·

CVE-2026-102937

·

Published

2026-09-29

·

Updated

2026-09-29

CVSS v4.0

7.3

High

VectorAV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions virtualenv versions prior to 21.7.12
Description The BatchActivator.quote() function fails to properly sanitize prompt text before it is inserted into a cmd.exe set statement within the activate.bat file. An attacker capable of influencing the --prompt flag, the VIRTUALENV PROMPT variable, or the related configuration value can inject a double quote to terminate the variable assignment and execute arbitrary commands. These commands run with the privileges of the user who activates the generated Windows environment.
Recommendations Update virtualenv to version 21.7.12 or later.

Exploit

Fix

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-102937
GHSA-X78J-V8H9-3J2Q

Affected Products

Virtualenv