Security mailing lists by PureSourceCode

CVE-2026-113776

HIGH 7.8CVSS 3.1

virtualenv activation scripts run code from a path that contains a placeholder name

virtualenv is a tool for creating isolated virtual python environments. From 20.26.6 until 21.14.2, ViaTemplateActivator.instantiate_template() replaces placeholders one key at a time across the complete activation template, so trigger names such as VIRTUAL_NAME, VIRTUAL_ENV, or VIRTUAL_PROMPT inside an already substituted and quoted environment path or prompt can be replaced during a later pass. The later value's quoting can close the earlier literal and execute the remaining path when a user activates the environment through bash, fish, xonsh, or activate_this.py. The distinct csh prompt-display token VIRTUAL_PROMPT_DISPLAY_TCSH can instead break the generated script without establishing command execution. The attacker must influence the destination path or --prompt, and a value without a relevant placeholder name does not trigger this mechanism. This issue is fixed in version 21.14.2.

Published
20 Oct 2026
Last modified
18 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-78CWE-94
Also known as
BIT-virtualenv-2026-113776GHSA-8rjx-v5ww-45ppPYSEC-2026-4387
Sources
NVDJSONOSV GHSA-8rjx-v5ww-45ppJSONOSV PYSEC-2026-4387JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD virtualenv virtualenv
cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*
>= 20.26.6, < 21.14.2 21.14.2
OSV PyPI virtualenv >= 20.26.6, < 21.14.2 21.14.2

References

History

  • 25 Nov 2026 21:22 UTC · NVD: first stored (published 20 Oct 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Oct 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Oct 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.