virtualenv: Command injection via --prompt in activate.bat (batch activator)
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pypa | virtualenv | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pypa | Virtualenv |
|
||||||||
| Python | Virtualenv |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-x78j-v8h9-3j2q | virtualenv: Command injection via --prompt in activate.bat (batch activator) |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.208% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pypa
Pypa virtualenv Python Python virtualenv |
|
| Vendors & Products |
Pypa
Pypa virtualenv Python Python virtualenv |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, BatchActivator.quote() returns prompt text unchanged before activate.bat inserts it into a cmd.exe set "VAR=value" statement. An attacker who influences --prompt, VIRTUALENV_PROMPT, or the corresponding configuration value can include a double quote that closes the assignment and leaves following cmd.exe operators as executable syntax. When a user activates the generated Windows environment, the injected commands run with that user's privileges. This issue is fixed in version 21.7.12. | |
| Title | virtualenv: Command injection via --prompt in activate.bat (batch activator) | |
| Weaknesses | CWE-78 | |
| References |
| |
| Metrics |
cvssV4_0
|