Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-102925

HIGH 7.8EPSS 8%

virtualenv bash and fish activation scripts execute commands embedded in paths

Also known as BIT-virtualenv-2026-102925, GHSA-p58f-9548-mpm2, PYSEC-2026-4013

Mitigation

  • Upgrade virtualenv to 21.7.13 or later.

Who should check

  • Projects that depend on PyPI package virtualenv (< 21.7.13)
  • Anyone running pypa virtualenv < 21.7.13

Vulnerability facts

Affected
virtualenv < 21.7.13
Fixed in
21.7.13
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-78
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI virtualenv< 21.7.1321.7.13osv
pypa virtualenv< 21.7.13—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-102925. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-102925.md
Affected: virtualenv < 21.7.13
Fixed in: 21.7.13

Steps:
1. Search this machine and project for virtualenv (PyPI), pypa virtualenv: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-102925 being exploited?

There is no confirmed exploitation: CVE-2026-102925 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-102925?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-102925?

virtualenv < 21.7.13.

Is there a fix for CVE-2026-102925?

Yes. Fixed in 21.7.13. Upgrade virtualenv to 21.7.13 or later.

How do I check if I'm affected by CVE-2026-102925?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors