CVE-2024-9287: A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a
CVE-2024-9287 is a high-severity flaw (CVSS 7.8) affecting python. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 a
Why this priority
- High severity
A fixed release or distro patch exists.
Last updated 2026-10-30 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-9287?
python: upgrade to 3.9.21, 3.10.16, 3.11.11, 3.12.8, 3.13.1. Exact commands for each OS are on this page.
Is CVE-2024-9287 being exploited?
CVE-2024-9287 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-9287 affect?
CVE-2024-9287 affects python. Severity is high (CVSS 7.8). 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" script
How urgent is CVE-2024-9287?
Priority 40/100. High severity
Software pages
Related CVEs
- CVE-2026-3087 HIGH 7.5 UPGRADE If `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a drive (`C:\\...
- CVE-2026-6019 MEDIUM 6.1 UPGRADE http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string co
- CVE-2026-7210 HIGH 7.5 UPGRADE `xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, w
- CVE-2026-0864 MEDIUM 5.5 UPGRADE When using the "configparser" module to write configuration files containing multi-line text values with carri
- CVE-2026-4360 MEDIUM 5.3 UPGRADE In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks