CVE-2024-53899Virtualenv
High 7.8
Follow: this CVE · Virtualenv · Virtualenv We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- Yes
- Published
- Nov 24, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Magic template strings are not quoted correctly when replacing. NOTE: this is not the same as CVE-2024-9287.
What to do
- Apply the vendor's security update for Virtualenv.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | virtualenv |
< 20.26.6 |
20.26.6 |
pip install "virtualenv>=20.26.6" |
| PyPI | virtualenv |
< 20.26.6 |
20.26.6 |
pip install "virtualenv>=20.26.6" |
Per OSV / GitHub Advisories (GHSA-rqc4-2hc7-8c8v, PYSEC-2024-187). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| virtualenv | virtualenv | < 20.26.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit
- github.com Patch
- github.com Release Notes