virtualenv 不正なプロンプト文字列でコマンドを実行される恐れ
Summary
virtualenv の 21.14.9 より前のバージョンでは、作成時に指定されたプロンプト文字列が bash の有効化スクリプト内で実行可能な構文として解釈される場合があります。攻撃者が virtualenv に渡す値を操作し、利用者がその環境を有効化してプロンプトを表示すると、任意のコマンドが実行されるおそれがあります。修正版の 21.14.9 以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
virtualenv の 21.14.9 より前のバージョンでは、作成時に指定されたプロンプト文字列が bash の有効化スクリプト内で実行可能な構文として解釈される場合があります。攻撃者が virtualenv に渡す値を操作し、利用者がその環境を有効化してプロンプトを表示すると、任意のコマンドが実行されるおそれがあります。修正版の 21.14.9 以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pypavirtualenv | — | Not listed |
| pipvirtualenv |
< 21.14.9→ 21.14.9 |
21.14.9 |
| PyPIvirtualenv |
< 21.14.9→ 21.14.9 |
21.14.9 |
| Bitnamivirtualenv |
< 21.14.9→ 21.14.9 |
21.14.9 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-113723 python-virtualenv Fix available
- Ubuntu UBUNTU-CVE-2026-113723 python-virtualenv No fixed version in this record
Original description The description as published by the source.
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, caller-supplied prompt text can become executable syntax in the bash activation prompt. An attacker must influence the value passed to virtualenv, and a user must subsequently activate the environment and draw the prompt. This vulnerability is fixed in 21.14.9.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web nvd.nist.gov
- web github.com