Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. virtualenv
  4. ›
  5. CVE-2024-53899

CVE-2024-53899: virtualenv allows command injection through activation scripts for a virtual environment

November 24, 2024 (updated January 21, 2025)

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

  • github.com/advisories/GHSA-rqc4-2hc7-8c8v
  • github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2024-187.yaml
  • github.com/pypa/virtualenv
  • github.com/pypa/virtualenv/issues/2768
  • github.com/pypa/virtualenv/pull/2771
  • github.com/pypa/virtualenv/releases/tag/20.26.6
  • nvd.nist.gov/vuln/detail/CVE-2024-53899

Code Behaviors & Features

Detect and mitigate CVE-2024-53899 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 20.26.6

Fixed versions

  • 20.26.6

Solution

Upgrade to version 20.26.6 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/virtualenv/CVE-2024-53899.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:27 +0000.