CVE-2024-9287

A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.
CVSS

No CVSS.

Configurations

No configuration.

History

04 Nov 2024, 18:15

Type Values Removed Values Added
References
  • () https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 -
  • () https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db -
  • () https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8 -
  • () https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97 -

30 Oct 2024, 16:15

Type Values Removed Values Added
References
  • () https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 -

23 Oct 2024, 15:12

Type Values Removed Values Added
Summary
  • (es) Se ha encontrado una vulnerabilidad en el módulo `venv` de CPython y en la CLI donde los nombres de ruta proporcionados al crear un entorno virtual no se citaban correctamente, lo que permitía al creador inyectar comandos en los scripts de "activación" del entorno virtual (es decir, "source venv/bin/activate"). Esto significa que los entornos virtuales controlados por el atacante pueden ejecutar comandos cuando el entorno virtual está activado. Los entornos virtuales que no son creados por un atacante o que no se activan antes de ser utilizados (es decir, "./venv/bin/python") no se ven afectados.

22 Oct 2024, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-10-22 17:15

Updated : 2024-11-04 18:15


NVD link : CVE-2024-9287

Mitre link : CVE-2024-9287

CVE.ORG link : CVE-2024-9287


JSON object : View

Products Affected

No product.

CWE
CWE-428

Unquoted Search Path or Element