CVE-2024-53899: Conda lock · virtualenv allows command injection through activation scripts for a virtual environment
Affects conda-lockSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 8.4 High : upgrade to 2.5.7_2 soon.
Data as of 4 Dec 2026, 20:32 UTC
- Patch
- Available – fixed in 2.5.7_2, 20.26.6
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 24 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade conda-lock to 2.5.7_2; virtualenv to 20.26.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewconda-lockpkg:brew/conda-lockOther threats | Affected
| Fixed in
|
PyPIvirtualenvpkg:pypi/virtualenvOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade conda-lock to version 2.5.7_2 or later, where this vulnerability has been fixed. Since a patch is available, applying the official update is the recommended remediation. No additional mitigations are specified.
Description
A command injection vulnerability exists in virtualenv versions before 20.26.6, specifically affecting the activation scripts for virtual environments. This occurs because magic template strings are not properly quoted during replacement, allowing an attacker to inject arbitrary commands. This vulnerability is distinct from CVE-2024-9287. The issue affects conda-lock versions >=2.5.5 and <2.5.7_2 and has been assigned a high severity score.
References
- nvd.nist.gov/vuln/detail/CVE-2024-53899 (opens in a new tab)
- github.com/pypa/virtualenv/issues/2768 (opens in a new tab)
- github.com/pypa/virtualenv/pull/2771 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml (opens in a new tab)
- github.com/pypa/virtualenv (opens in a new tab)
- github.com/pypa/virtualenv/releases/tag/20.26.6 (opens in a new tab)