CVE-2024-53899
JSON

8.4high

virtualenv allows command injection through activation scripts for a virtual environment

Severity
8.4high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.57% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-rqc4-2hc7-8c8vBIT-VIRTUALENV-2024-53899PYSEC-2024-187

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
virtualenv virtualenvbefore 20.26.6CVE List, NVD
virtualenv (PyPI)before 20.26.6GitHub Advisory Database, PyPA Advisory Database
virtualenv (Bitnami)before 20.26.6Bitnami Vulnerability Database

All scores

CISA-ADP8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-77CWE-78

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Virtualenv anterior a la versión 20.26.6 permite la inyección de comandos a través de los scripts de activación para un entorno virtual. Las cadenas de plantilla mágica no se citan correctamente al reemplazarlas. NOTA: esto no es lo mismo que CVE-2024-9287.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-53899 changed 2024-11-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-rqc4-2hc7-8c8v changed 2026-09-10CC-BY-4.0
NVDCVE-2024-53899 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-187 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-VIRTUALENV-2024-53899 changed 2026-09-10Apache-2.0