Bug 2557581 (CVE-2026-113776) - CVE-2026-113776 virtualenv: virtualenv: Arbitrary command execution via sequential placeholder substitution in activation templates
Summary: CVE-2026-113776 virtualenv: virtualenv: Arbitrary command execution via seque...
Keywords:
Status: NEW
Alias: CVE-2026-113776
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2583255 2583256 2583221 2583222 2583257 2583258
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-21 00:17 UTC by OSIDB Bzimport
Modified: 2026-11-24 13:46 UTC (History)
69 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:100715 0 None None None 2026-11-19 19:29:50 UTC
Red Hat Product Errata RHSA-2026:100716 0 None None None 2026-11-19 19:26:56 UTC

Description OSIDB Bzimport 2026-10-21 00:17:54 UTC
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.

Comment 3 errata-xmlrpc 2026-11-19 19:26:52 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.7 for RHEL 9
  Red Hat Ansible Automation Platform 2.7 for RHEL 10

Via RHSA-2026:100716 https://access.redhat.com/errata/RHSA-2026:100716

Comment 4 errata-xmlrpc 2026-11-19 19:29:45 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.6 for RHEL 9
  Red Hat Ansible Automation Platform 2.6 for RHEL 10

Via RHSA-2026:100715 https://access.redhat.com/errata/RHSA-2026:100715


Note You need to log in before you can comment on or make changes to this bug.