Code Injection Vulnerability in Virtualenv by PyPa
CVE-2026-102937

7.3HIGH

Key Information:

Vendor

Pypa

Vendor
CVE Published:
29 September 2026

What is CVE-2026-102937?

A code injection vulnerability exists in Virtualenv prior to version 21.7.12, arising from improper handling of command prompts in Windows environments. Specifically, the BatchActivator.quote() function fails to sanitize input, allowing a malicious user to manipulate the --prompt or VIRTUALENV_PROMPT settings. By injecting a double quote, the attacker can close a variable assignment and execute arbitrary commands within the user's privileges upon activation. The flaw underscores the importance of using updated versions of tools to safeguard against potential exploitation.

Affected Version(s)

virtualenv < 21.7.12

References

CVSS V4

Score:
7.3
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.