CVE catalog

CVE-2026-102925

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 in

[CVE catalog]

Severity
High · CVSS 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.16% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-virtualenvsid21.5.1+ds-1vulnerable
Debianpython-virtualenvforky21.5.1+ds-1vulnerable
Debianpython-virtualenvtrixie20.31.2+ds-1+deb13u1vulnerable
Debianpython-virtualenvbookworm20.17.1+ds-1not affected
PyPIvirtualenvNot reported21.7.13fixed
PyPIvirtualenvNot reported21.7.13fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-virtualenvsourcesid(unfixed)not yet assignedNot reported[1149650]
Debianpython-virtualenvsourceforky(unfixed)not yet assignedNot reported[1149650]
Debianpython-virtualenvsourcetrixie(unfixed)not yet assignedNot reported[1149650]
Debianpython-virtualenvsourcebookwormNot affectedunimportantNot reported[1149650]
PyPIvirtualenvPyPINot reported21.7.13Not reportedPYSEC-2026-4013Not reported
PyPIvirtualenvPyPINot reported21.7.13Not reportedGHSA-P58F-9548-MPM2Not reported

[Debian bug #1149650]

Notes

[trixie] python-virtualenv: Minor issue

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • Source package: [python-virtualenv]

    Details (2)
    • 20.31.2+ds-1+deb13u1 · all · trixie

      Affected

      nvd · python-virtualenv · debian · 13

    • 20.31.2+ds-1+deb13u1 · all · trixie

      Affected

      nvd · python-virtualenv · debian · 13

  • [virtualenv]Affected

    Source package: [python-virtualenv]

    Details (2)
    • 20.31.2+ds-1+deb13u1 · all · trixie

      Affected

      nvd · python-virtualenv · debian · 13

    • 20.31.2+ds-1+deb13u1 · all · trixie

      Affected

      nvd · python-virtualenv · debian · 13

[Debian 12 (Bookworm)]

  • [python3-virtualenv]Not affected

    Source package: [python-virtualenv]

    Details (2)
    • 20.17.1+ds-1 · all · bookworm

      Not affected

      nvd · python-virtualenv · debian · bookworm

    • 20.17.1+ds-1 · all · bookworm

      Not affected

      nvd · python-virtualenv · debian · bookworm

  • [virtualenv]Not affected

    Source package: [python-virtualenv]

    Details (2)
    • 20.17.1+ds-1 · all · bookworm

      Not affected

      nvd · python-virtualenv · debian · bookworm

    • 20.17.1+ds-1 · all · bookworm

      Not affected

      nvd · python-virtualenv · debian · bookworm

Observed:

References