virtualenv で仮想環境名を介しコマンドを実行される恐れ
Summary
virtualenv の bash 用 activate スクリプトに、環境名の処理に不備があり、名前に特定の文字列を含めると、プロンプト表示のたびに利用者のシェルでコマンドが実行される問題が見つかりました。影響を受けるのは 21.14.7 より前の版です。修正版の 21.14.7 に更新してください。
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 の bash 用 activate スクリプトに、環境名の処理に不備があり、名前に特定の文字列を含めると、プロンプト表示のたびに利用者のシェルでコマンドが実行される問題が見つかりました。影響を受けるのは 21.14.7 より前の版です。修正版の 21.14.7 に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pypavirtualenv | — | Not listed |
| PyPIvirtualenv |
< 21.14.7→ 21.14.7 |
21.14.7 |
| pipvirtualenv |
< 21.14.7→ 21.14.7 |
21.14.7 |
| Bitnamivirtualenv |
< 21.14.7→ 21.14.7 |
21.14.7 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-113725 python-virtualenv Fix available
- Ubuntu UBUNTU-CVE-2026-113725 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.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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web nvd.nist.gov
- web github.com