SecurityContext

CVE-2026-102925: virtualenv - Command Injection

  • Cve: CVE-2026-102925
  • Name: virtualenv - Command Injection
  • Description: virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.13, the generated activate (bash and zsh) and activate.fish scripts place values already escaped by shlex.quote inside an additional quoted context. In the bash and zsh script, a crafted virtual environment path reaches __VIRTUAL_ENV__ when a relocated environment's recorded directory is absent; in the fish script, crafted Tcl or Tk library paths reach __TCL_LIBRARY__ or __TK_LIBRARY__. The surplus quotes can terminate the data-only quoted run and leave shell metacharacters parsed as commands when a user sources the activation script, allowing code execution with that user's privileges. This issue is fixed in version 21.7.13.
  • Impact: Attackers can execute arbitrary code with the user's privileges when the activation script is sourced.
  • Remediation: Update to version 21.7.13 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft environment paths and have the user source the activation script
  • 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.00164
  • Epss percentile: 0.05556
  • Assignee: [email protected]
  • Published at: 2026-09-29T21:17:18Z
  • Age in days: 56
  • Modified at: 2026-11-09T19:41:02Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-102925
  • 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: 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/4d5a105ec2a2723b8c7f4571bb68f4f71d01e3f6Patch
https://github.com/pypa/virtualenv/pull/3252Issue Tracking, Patch
https://github.com/pypa/virtualenv/security/advisories/GHSA-p58f-9548-mpm2Patch, Vendor Advisory, Mitigation
https://github.com/pypa/virtualenv/releases/tag/21.7.13Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
virtualenv:virtualenv< 21.7.13nonvd/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