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

  • ALAS2-2025-2817

    Amazon Linux 2 2017.12 - ALAS2-2025-2817: medium priority package update for python3

    Medium CVE-2024-9287 Amazon Linux Updated 7 April 2025
  • ALAS2023-2025-808

    Amazon Linux 2023 - ALAS2023-2025-808: Important priority package update for python3.12

    Important CVE-2024-12254CVE-2024-9287 Amazon Linux Updated 24 January 2025
  • ALAS2023-2025-871

    Amazon Linux 2023 - ALAS2023-2025-871: Medium priority package update for python3.11

    Medium CVE-2024-9287CVE-2025-0938CVE-2025-1795 Amazon Linux Updated 21 March 2025
  • ALAS2023-2025-900

    Amazon Linux 2023 - ALAS2023-2025-900: Medium priority package update for python3.9

    Medium CVE-2024-11168CVE-2024-9287 Amazon Linux Updated 26 March 2025
  • ALPINE-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 Alpine Updated 2 November 2026
  • ALPINE-EDGE-CVE-2024-9287
    CVE-2024-9287 Alpine Updated 18 November 2026
  • ALSA-2024:10779

    Moderate: python3:3.6.8 security update

    CVE-2024-11168CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • ALSA-2024:10978

    Important: python3.12 security update

    CVE-2024-12254CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • ALSA-2024:10979

    Moderate: python3.11 security update

    CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • ALSA-2024:10980

    Important: python3.12 security update

    CVE-2024-12254CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • ALSA-2024:10983

    Moderate: python3.9:3.9.21 security update

    CVE-2024-11168CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • ALSA-2024:11111

    Moderate: python3.11 security update

    CVE-2024-9287 AlmaLinux Updated 29 October 2026
  • ALSA-2025:23530

    Important: python39:3.9 security update

    CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 AlmaLinux Updated 29 October 2026
  • AZL-109677

    CVE-2024-9287 affecting package python-py 1.11.0-1

    CVE-2024-9287 Azure Linux Updated 27 October 2026
  • AZL-50757

    CVE-2024-9287 affecting package python3 for versions less than 3.9.19-11

    CVE-2024-9287 Azure Linux Updated 21 April 2026
  • AZL-50926

    CVE-2024-9287 affecting package python3 for versions less than 3.12.9-1

    CVE-2024-9287 Azure Linux Updated 21 April 2026
  • CGA-4wx2-h7xr-f39x
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CGA-59wh-f535-g7h2
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CGA-87xm-4v3r-j985
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CGA-985x-vxwx-fwrx
    CVE-2024-9287 Chainguard Updated 5 November 2026
  • CGA-cw43-v6jj-39w5
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CGA-m448-j5m6-6xg5
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CGA-mvpj-w3v3-93gx
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CGA-qq95-9ccm-rggm
    CVE-2024-9287 Chainguard Updated 5 November 2026
  • CGA-rvff-g26f-q3rg
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CGA-vpjj-v5xq-36r7
    CVE-2024-9287 ChainguardWolfi Updated 5 November 2026
  • CNA-CVE-2024-9287

    Virtual environment (venv) activation scripts don't quote paths

    CVE-2024-9287 Python Updated 30 October 2026
  • DEBIAN-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 Debian Updated 1 November 2026
  • DLA-3966-1

    pypy3 - security update

    CVE-2020-10735CVE-2020-29651CVE-2021-28861CVE-2021-3737 Debian Updated 20 November 2026
  • DLA-3980-1

    python3.9 - security update

    CVE-2015-20107CVE-2020-10735CVE-2021-28861CVE-2021-29921 Debian Updated 20 November 2026
  • ELSA-2024-10779

    ELSA-2024-10779: python3:3.6.8 security update (MODERATE)

    Moderate CVE-2024-11168CVE-2024-9287 Oracle Linux Updated 4 December 2024
  • ELSA-2024-10978

    ELSA-2024-10978: python3.12 security update (IMPORTANT)

    Important CVE-2024-12254CVE-2024-9287 Oracle Linux Updated 12 December 2024
  • ELSA-2024-10979

    ELSA-2024-10979: python3.11 security update (MODERATE)

    Moderate CVE-2024-9287 Oracle Linux Updated 12 December 2024
  • ELSA-2024-10980

    ELSA-2024-10980: python3.12 security update (IMPORTANT)

    Important CVE-2024-12254CVE-2024-9287 Oracle Linux Updated 12 December 2024
  • ELSA-2024-10983

    ELSA-2024-10983: python3.9:3.9.21 security update (MODERATE)

    Moderate CVE-2024-11168CVE-2024-9287 Oracle Linux Updated 12 December 2024
  • ELSA-2024-11111

    ELSA-2024-11111: python3.11 security update (MODERATE)

    Moderate CVE-2024-9287 Oracle Linux Updated 16 December 2024
  • ELSA-2025-23530

    ELSA-2025-23530: python39:3.9 security update (IMPORTANT)

    Important CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 Oracle Linux Updated 23 December 2025
  • OESA-2024-2481

    python3 security update

    Medium CVE-2024-9287 openEuler Updated 18 August 2026
  • OESA-2024-2482

    python3 security update

    Medium CVE-2024-9287 openEuler Updated 18 August 2026
  • OESA-2024-2483

    python3 security update

    Medium CVE-2024-9287 openEuler Updated 18 August 2026
  • OESA-2024-2484

    python3 security update

    Medium CVE-2024-9287 openEuler Updated 18 August 2026
  • OESA-2025-2574

    python3 security update

    Medium CVE-2024-9287CVE-2025-8291 openEuler Updated 18 August 2026
  • RHBA-2025:6294

    Red Hat Bug Fix Advisory: python3.12 bug fix and enhancement update

    CVE-2024-12254CVE-2024-6232CVE-2024-9287CVE-2025-0938 Red Hat Updated 24 November 2026
  • RHSA-2024:10779

    Red Hat Security Advisory: python3:3.6.8 security update

    CVE-2024-11168CVE-2024-9287 Red Hat Updated 24 November 2026
  • RHSA-2024:10978

    Red Hat Security Advisory: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Red Hat Updated 24 November 2026
  • RHSA-2024:10979

    Red Hat Security Advisory: python3.11 security update

    CVE-2024-9287 Red Hat Updated 13 November 2026
  • RHSA-2024:10980

    Red Hat Security Advisory: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Red Hat Updated 24 November 2026
  • RHSA-2024:10983

    Red Hat Security Advisory: python3.9:3.9.21 security update

    CVE-2024-0397CVE-2024-11168CVE-2024-7592CVE-2024-9287 Red Hat Updated 24 November 2026
  • RHSA-2024:11024

    Red Hat Security Advisory: python3.9:3.9.18 security update

    CVE-2024-9287 Red Hat Updated 13 November 2026
  • RHSA-2024:11035

    Red Hat Security Advisory: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Red Hat Updated 24 November 2026
  • RHSA-2024:11111

    Red Hat Security Advisory: python3.11 security update

    CVE-2024-9287 Red Hat Updated 13 November 2026
  • RHSA-2025:0280

    Red Hat Security Advisory: python3.11 security update

    CVE-2024-9287 Red Hat Updated 13 November 2026
  • RHSA-2025:23530

    Red Hat Security Advisory: python39:3.9 security update

    CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 Red Hat Updated 24 November 2026
  • RHVEX-CVE-2024-9287

    python: Virtual environment (venv) activation scripts don't quote paths

    Moderate CVE-2024-9287 Red Hat Updated 5 November 2026
  • RLSA-2024:10779

    Moderate: python3:3.6.8 security update

    CVE-2024-11168CVE-2024-9287 Rocky Linux Updated 4 February 2026
  • RLSA-2024:10979

    Moderate: python3.11 security update

    CVE-2024-9287 Rocky Linux Updated 5 February 2026
  • RLSA-2024:10980

    Important: python3.12 security update

    CVE-2024-12254CVE-2024-9287 Rocky Linux Updated 5 February 2026
  • RLSA-2024:10983

    Moderate: python3.9:3.9.21 security update

    CVE-2024-11168CVE-2024-9287 Rocky Linux Updated 5 February 2026
  • RLSA-2024:11111

    Moderate: python3.11 security update

    CVE-2024-9287 Rocky Linux Updated 4 February 2026
  • RLSA-2025:23530

    Important: python39:3.9 security update

    CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 Rocky Linux Updated 18 December 2025
  • SUSE-SU-2024:3760-1

    Security update for python3

    CVE-2024-9287 SUSE Updated 4 February 2026
  • SUSE-SU-2024:3879-1

    Security update for python3

    CVE-2024-9287 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:3924-1

    Security update for python310

    CVE-2024-9287 openSUSE Updated 4 February 2026
  • SUSE-SU-2024:3929-1

    Security update for python36

    CVE-2024-9287 SUSE Updated 4 February 2026
  • SUSE-SU-2024:3944-1

    Security update for python3

    CVE-2024-9287 SUSE Updated 4 February 2026
  • SUSE-SU-2024:3945-1

    Security update for python39

    CVE-2024-9287 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:3957-1

    Security update for python311

    CVE-2024-9287 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:3958-1

    Security update for python311

    CVE-2024-9287 SUSEopenSUSE Updated 2 May 2025
  • SUSE-SU-2024:3959-1

    Security update for python312

    CVE-2024-9287 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2025:0047-1

    Security update for python39

    CVE-2024-11168CVE-2024-9287 openSUSE Updated 4 February 2026
  • SUSE-SU-2025:0048-1

    Security update for python312

    CVE-2024-9287 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2025:0049-1

    Security update for python310

    CVE-2024-11168CVE-2024-9287 openSUSE Updated 4 February 2026
  • SUSE-SU-2025:02074-1

    Security update for python313

    CVE-2024-12254CVE-2024-12718CVE-2024-9287CVE-2025-0938 SUSE Updated 4 February 2026
  • SUSE-SU-2025:20154-1

    Security update for python311

    CVE-2019-20907CVE-2019-9947CVE-2020-15523CVE-2020-15801 SUSE Updated 23 March 2026
  • SUSE-SU-2025:20374-1

    Security update for python311

    CVE-2022-25236CVE-2023-27043CVE-2023-52425CVE-2023-6597 SUSE Updated 23 March 2026
  • SUSEVEX-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…

    Moderate CVE-2024-9287 SUSE Updated 17 October 2026
  • 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 22 April 2026
  • USN-7116-1

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

    CVE-2024-9287 Ubuntu Updated 27 April 2026
  • USN-7348-1

    python3.5, python3.8 vulnerabilities

    CVE-2024-11168CVE-2024-4032CVE-2024-9287CVE-2025-0938 Ubuntu Updated 25 June 2026
  • USN-7488-1

    python vulnerabilities

    CVE-2024-11168CVE-2024-6232CVE-2024-9287 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2024:14426-1

    python310-virtualenv-20.26.6-1.1 on GA media

    CVE-2024-9287 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14427-1

    python310-3.10.15-2.1 on GA media

    CVE-2024-9287 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14428-1

    python39-3.9.20-4.1 on GA media

    CVE-2024-9287 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14430-1

    python313-3.13.0-3.1 on GA media

    CVE-2024-9287 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14455-1

    python311-3.11.10-3.1 on GA media

    CVE-2024-9287 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14456-1

    python312-3.12.7-2.1 on GA media

    CVE-2024-9287 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:11974-1

    python313-virtualenv-21.14.2-1.1 on GA media

    CVE-2024-9287CVE-2026-102925CVE-2026-102930CVE-2026-102938 openSUSE Updated 3 October 2026

References