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 Red Hat

  • 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 24 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 24 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 24 November 2026
  • RHSA-2025:0280

    Red Hat Security Advisory: python3.11 security update

    CVE-2024-9287 Red Hat Updated 24 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 26 November 2026
  • RHVEX-CVE-2024-9287

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

    Moderate CVE-2024-9287 Red Hat Updated 26 November 2026

References