SecurityContext

CVE-2026-102937: virtualenv - Command Injection

  • Cve: CVE-2026-102937
  • Name: virtualenv - Command Injection
  • Description: 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.
  • Impact: Attackers can execute arbitrary commands with the user's privileges upon environment activation, potentially compromising the user's system.
  • Remediation: Update to version 21.7.12 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: command_injection
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00209
  • Epss percentile: 0.10915
  • Assignee: [email protected]
  • Published at: 2026-09-29T21:17:18Z
  • Age in days: 56
  • Modified at: 2026-11-19T19:28:37Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-102937
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/pypa/virtualenv/commit/d721ff140ce4afdc2a9b76751e4584e25d9fbea6Patch
https://github.com/pypa/virtualenv/pull/3250Issue Tracking, Patch
https://github.com/pypa/virtualenv/security/advisories/GHSA-x78j-v8h9-3j2qVendor Advisory
https://github.com/pypa/virtualenv/releases/tag/21.7.12Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
virtualenv:virtualenv< 21.7.12nonvd/v1/products/virtualenv/virtualenv

Projects

RepositoryLink kindsIndexedUrl
pypa/virtualenvcommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/pypa/virtualenv

Index

  • Repositories: 609
  • Repositories high signal: 396
  • Packages: 1

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts