CVE-2024-9287Python
Medium 5.3
Follow: this CVE · Python · Python We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 4.0
- 5.3
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 32
- Auth required
- Yes
- Published
- Oct 22, 2024
- Updated
- Oct 30, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS: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
What happens
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.
What to do
- Apply the vendor's security update for Python.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | python | < 3.9.21 |
| python | python | ≥ 3.10.0 < 3.10.16 |
| python | python | ≥ 3.11.0 < 3.11.11 |
| python | python | ≥ 3.12.0 < 3.12.8 |
| python | python | ≥ 3.13.0 < 3.13.1 |
| python | python | 3.14.0 |
Official advisories
- python313-virtualenv-21.14.2-1.1 on GA media · SUSE · openSUSE-SU-2026:11974-1 · Oct 2, 2026 High
- Red Hat Security Advisory: python39:3.9 security update · Red Hat · RHSA-2025:23530 · Dec 18, 2025 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Issue Tracking
- github.com Issue Tracking Patch
- mail.python.org Vendor Advisory
- lists.debian.org
- lists.debian.org
- security.netapp.com