All vulnerabilities

Servers and applications

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…

Severity
Medium 5.3
Published
22 Oct 2024
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1
Sources
NVD

Affected software

SoftwareAffected versions
PythonServers and applications · cpe:a:python:python
  • Every version before 3.9.21
  • From 3.10.0 before 3.10.16
  • From 3.11.0 before 3.11.11
  • From 3.12.0 before 3.12.8
  • From 3.13.0 before 3.13.1
  • Version 3.14.0-alpha1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2024-9287
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2024-9287