Bug 2583256 - CVE-2026-113776 python-virtualenv: virtualenv: Arbitrary command execution via sequential placeholder substitution in activation templates [fedora-all]
Summary: CVE-2026-113776 python-virtualenv: virtualenv: Arbitrary command execution vi...
Keywords:
Status: ON_QA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-virtualenv
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["bd74e682-dd44-45cf-81eb-0...
: 2583258 (view as bug list)
Depends On:
Blocks: CVE-2026-113776
TreeView+ depends on / blocked
 
Reported: 2026-11-24 13:44 UTC by Ganesh
Modified: 2026-12-03 01:01 UTC (History)
5 users (show)

Fixed In Version: python-virtualenv-21.15.6-1.fc46
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-virtualenv pull-request 181 0 None None None 2026-11-24 14:59:40 UTC

Description Ganesh 2026-11-24 13:44:22 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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 1 Miro Hrončok 2026-11-24 14:02:33 UTC
*** Bug 2583258 has been marked as a duplicate of this bug. ***

Comment 2 Miro Hrončok 2026-11-24 14:15:14 UTC
This is fixed upstream in virtualenv 21.14.2, which is already released. It is fixed in Fedora 46 with python-virtualenv-21.15.6-1.fc46. Fedora 45 (21.7.5) and Fedora 44 and 43 (20.35.4) are not rebased or updated to it yet and might not be.

Comment assisted by Claude Sonnet 5.5

Comment 3 Miro Hrončok 2026-11-24 14:55:15 UTC
I'm looking into possible backport for Fedora 45.

Comment 4 Miro Hrončok 2026-11-24 14:59:41 UTC
(In reply to Miro Hrončok from comment #3)
> I'm looking into possible backport for Fedora 45.

https://src.fedoraproject.org/rpms/python-virtualenv/pull-request/181

Comment 5 Fedora Update System 2026-11-24 18:36:22 UTC
FEDORA-2026-40dcb2c5da (python-virtualenv-21.7.16-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-40dcb2c5da

Comment 6 Fedora Update System 2026-11-25 03:31:15 UTC
FEDORA-2026-40dcb2c5da has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-40dcb2c5da`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-40dcb2c5da

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-12-03 01:01:23 UTC
FEDORA-2026-40dcb2c5da (python-virtualenv-21.7.16-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


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