CVE-2024-53899
HIGH8.4EPSS 0.23%virtualenv allows command injection through activation scripts for a virtual environment
Published: 11/24/2024Modified: 4/28/2026
Description
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.
Affected packages (4)
- Bitnami/virtualenvfrom 0, < 20.26.6
- Debian/python-virtualenvfrom 0
- PyPI/virtualenvfrom 0, < 20.26.6
- PyPI/virtualenvfrom 0, < 20.26.6
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-53899
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-53899
- PATCHhttps://github.com/pypa/virtualenv
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml
- WEBhttps://github.com/pypa/virtualenv/issues/2768
- WEBhttps://github.com/pypa/virtualenv/pull/2771
- WEBhttps://github.com/pypa/virtualenv/releases/tag/20.26.6