CVE catalog

CVE-2026-102937

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=va

[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.14% · Oct 25, 2026

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.

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-1not affected
Debianpython-virtualenvforky21.5.1+ds-1not affected
Debianpython-virtualenvtrixie20.31.2+ds-1+deb13u1not affected
Debianpython-virtualenvbookworm20.17.1+ds-1not affected
PyPIvirtualenvNot reported21.7.12fixed
PyPIvirtualenvNot reported21.7.12fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-virtualenvsourcesidNot affectedunimportantNot reportedNot reported
Debianpython-virtualenvsourceforkyNot affectedunimportantNot reportedNot reported
Debianpython-virtualenvsourcetrixieNot affectedunimportantNot reportedNot reported
Debianpython-virtualenvsourcebookwormNot affectedunimportantNot reportedNot reported
PyPIvirtualenvPyPINot reported21.7.12Not reportedPYSEC-2026-4014Not reported
PyPIvirtualenvPyPINot reported21.7.12Not reportedGHSA-X78J-V8H9-3J2QNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [python-virtualenv]

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

      Affected

      nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12

    • 20.17.1+ds-1 · all · bookworm

      Affected

      nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12

  • [virtualenv]Affected

    Source package: [python-virtualenv]

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

      Affected

      nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12

    • 20.17.1+ds-1 · all · bookworm

      Affected

      nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12

[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

Observed:

References