Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2024-9287

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

Medium5.3EPSS 0.65%
Published
Updated
Reserved
Assigned by
PSF

Description

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.

Scores

CVSS scores of CVE-2024-9287, by who scored it
Scored byCVSSScoreVector
PSFCNA (assigner)4.0Medium5.3CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/U:Green
NVDNVD · Modified4.0Medium5.3CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Green
EPSS (exploitation in 30 days)
0.65% · top 49% of all CVEs (7 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.

Weakness

Affected products

  • Python Software Foundation · CPython

    • affected < 3.9.21
    • affected 3.10.0 – < 3.10.16
    • affected 3.11.0 – < 3.11.11
    • affected 3.12.0 – < 3.12.8
    • affected 3.13.0 – < 3.13.1
    • affected 3.14.0a1 – < 3.14.0a2

References (12)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2024-9287 badge
[![CVE-2024-9287](https://trackcve.app/badge/CVE-2024-9287.svg)](https://trackcve.app/cve/CVE-2024-9287)

Record last updated .