CVE-2024-53899: Python virtualenv · virtualenv before 20.26.6 allows command injection through the activation scripts
Affects python-virtualenvSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 8.4 High · fixed in 20.13.0+ds-2ubuntu0.1~esm1 : patch python-virtualenv soon.
Data as of 24 Nov 2026, 19:42 UTC
- Patch
- Available – fixed in 20.13.0+ds-2ubuntu0.1~esm1, 20.25.0+ds-2ubuntu0.1~esm1
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 23 Nov 2026.
What to do
Upgrade the Ubuntu python-virtualenv to 20.13.0+ds-2ubuntu0.1~esm1 (package) or 20.25.0+ds-2ubuntu0.1~esm1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 24.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu 14.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=trustyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-53899 (opens in a new tab)
- cve.org/CVERecord?id=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/virtualenv/releases/tag/20.26.6 (opens in a new tab)
- ubuntu.com/security/notices/USN-7271-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7271-2 (opens in a new tab)