ZeroDay Brief
Happy holidays from ZeroDay Brief!
CVE-2026-113776

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.

CVSS
7.8High
Chance of exploitation (EPSS)
0.29%
Published
Oct 20, 2026
In the news
Not yet
Vendor advisory More from this vendor

What to do

A serious command injection flaw in Pypa Virtualenv and Virtualenv that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 21.14.2

Affected versions
Pypa Virtualenv
>= 20.26.6, < 21.14.2
Virtualenv
20.26.6 to before 21.14.2

Description

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.

CWE-78CWE-94

Affected products

Get alerts for these →

Timeline 4

Latest change: Nessus plugin 377898: Amazon Linux 2023 : python3.13-virtualenv (ALAS2023-2026-3410) (Nov 8, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 3

  • github.com Patch /pypa/virtualenv/commit/602b26623a724827ff171bf11fef4ad186d01f74
  • github.com PatchVendor AdvisoryMitigation /pypa/virtualenv/security/advisories/GHSA-8rjx-v5ww-45pp
  • github.com /pypa/virtualenv/releases/tag/21.14.2

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”