CVE-2026-113725: virtualenv bash activate runs commands from an environment name with a backslash before $

Published Oct 20, 2026
·
Updated

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.

Affected Software

1 affected component
pypi/virtualenv<21.14.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade virtualenv to a version that resolves this vulnerability.

    Fixed in 21.14.7

Event History

Oct 20, 2026
CVE Published
via MITRE·07:56 PM
Data Sourced
via MITRE·07:56 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which environments are affected?

The issue affects virtualenv versions before 21.14.7 when the Bash activation script is used. The vulnerable behavior is in the handling of the environment name in the shell prompt.

2

What is required for command execution to occur?

The environment name must contain a backslash before a command-substitution sequence such as \$(...). A user must activate that environment in Bash; the vulnerability has a user-interaction requirement.

3

When are the embedded commands executed?

The commands run each time Bash draws the prompt after the affected environment has been activated. This can cause repeated command execution during an interactive shell session.

4

How can the issue be remediated?

Upgrade virtualenv to version 21.14.7, which fixes the Bash prompt escaping issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203