ADVISORIES

Vulnerability

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.

87 advisories report this vulnerability, across 15 ecosystems.

Advisories in Ubuntu

  • UBUNTU-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…

    CVE-2024-9287 Ubuntu Updated 24 November 2026
  • USN-7116-1

    python3.10, python3.12, python3.8 vulnerability

    CVE-2024-9287 Ubuntu Updated 24 November 2026
  • USN-7348-1

    python3.5, python3.8 vulnerabilities

    CVE-2024-11168CVE-2024-4032CVE-2024-9287CVE-2025-0938 Ubuntu Updated 24 November 2026
  • USN-7488-1

    python vulnerabilities

    CVE-2024-11168CVE-2024-6232CVE-2024-9287 Ubuntu Updated 24 November 2026

References