CVE-2024-9287 | Virtual environment (venv) activation scripts don't quote paths

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.

Published: 2024-10-22 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-9287 is rated Low Risk (37.9/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.65%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2024-9287

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.06% 0.65% +0.58%
2 2026-01-18 0.05% 0.06% +0.01%
3 2025-11-24 0.05%

Full EPSS history (7 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-9287

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.3 4.0 MEDIUM
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 Click to expand
Attack vector (AV:L)
Attacker needs local access on the target system.
Attack complexity (AC:L)
Exploitation conditions are straightforward and stable.
Attack requirements (AT:P)
Additional preconditions must be present for exploitation.
Privileges required (PR:H)
High privileges are required.
User interaction (UI:A)
User interaction is required in an active way.
Vulnerable system confidentiality impact (VC:H)
High confidentiality impact on the vulnerable system.
Vulnerable system integrity impact (VI:H)
High integrity impact on the vulnerable system.
Vulnerable system availability impact (VA:N)
No availability impact on the vulnerable system.
Subsequent system confidentiality impact (SC:N)
No confidentiality impact on subsequent systems.
Subsequent system integrity impact (SI:N)
No integrity impact on subsequent systems.
Subsequent system availability impact (SA:N)
No availability impact on subsequent systems.
Exploit maturity (threat) (E:X)
Not defined: no reliable threat intelligence; scoring assumes the worst case (equivalent to Attacked).
Confidentiality requirement (CR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Integrity requirement (IR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Availability requirement (AR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Modified attack vector (MAV:X)
Not defined: scoring uses the Base Attack Vector (AV).
Modified attack complexity (MAC:X)
Not defined: scoring uses the Base Attack Complexity (AC).
Modified attack requirements (MAT:X)
Not defined: scoring uses the Base Attack Requirements (AT).
Modified privileges required (MPR:X)
Not defined: scoring uses the Base Privileges Required (PR).
Modified user interaction (MUI:X)
Not defined: scoring uses the Base User Interaction (UI).
Modified vulnerable system confidentiality impact (MVC:X)
Not defined: scoring uses the Base VC metric.
Modified vulnerable system integrity impact (MVI:X)
Not defined: scoring uses the Base VI metric.
Modified vulnerable system availability impact (MVA:X)
Not defined: scoring uses the Base VA metric.
Modified subsequent system confidentiality impact (MSC:X)
Not defined: scoring uses the Base SC metric.
Modified subsequent system integrity impact (MSI:X)
Not defined: scoring uses the Base SI metric.
Modified subsequent system availability impact (MSA:X)
Not defined: scoring uses the Base SA metric.
Safety (supplemental) (S:X)
Not evaluated.
Automatable (supplemental) (AU:X)
Not evaluated.
Recovery (supplemental) (R:X)
Not evaluated.
Value density (supplemental) (V:X)
Not evaluated.
Vulnerability response effort (supplemental) (RE:X)
Not evaluated.
Provider urgency (supplemental) (U:GREEN)
Green: provider rates reduced urgency.
[email protected]
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]

Weakness enumeration for CVE-2024-9287

OS Trackers for CVE-2024-9287

vendor priority summary link
alpine medium CVE-2024-9287: 1 source package rows (python3); 6 state rows across 6 repos (3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 6, open 0. https://security.alpinelinux.org/vuln/CVE-2024-9287
debian unimportant CVE-2024-9287 unimportant priority: Debian including 5 source packages (pypy3, python2.7, python3.11, python3.13, python3.9), 11 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 11. https://security-tracker.debian.org/tracker/CVE-2024-9287
redhat medium https://access.redhat.com/security/cve/CVE-2024-9287
suse medium CVE-2024-9287 severity moderate: SUSE including 669 source package names (0.0.17-1.1:libpython3_11-1_0-3.11.10-150600.3.9.2, 0.0.17-1.1:libpython3_6m1_0-3.6.15-150300.10.75.1, …), 2391 product×package rows across 393 product lines (Container bci/bci-sle15-kernel-module-devel, Container bci/kiwi, … (393 product lines)): Fixed 2089, Known Affected 221, Known Not Affected 81. https://www.suse.com/security/cve/CVE-2024-9287/
ubuntu medium CVE-2024-9287 medium priority: Ubuntu including 11 source packages (python2.7, python3.10, …), 86 status rows across 10 suites (bionic, focal, jammy, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 61, released 18, not-affected 7. https://ubuntu.com/security/CVE-2024-9287

Affected software / configurations for CVE-2024-9287

Vendor Product Version Raw CPE
python python < 3.9.21 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.10.0, < 3.10.16 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.11.0, < 3.11.11 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.12.0, < 3.12.8 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.13.0, < 3.13.1 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python 3.14.0 cpe:2.3:a:python:python:3.14.0:alpha1:*:*:*:*:*:*

References for CVE-2024-9287

URL Tags
https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 Patch
https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db Patch
https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8 Patch
https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97 Patch
https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b Patch
https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 Patch
https://github.com/python/cpython/issues/124651 Issue Tracking
https://github.com/python/cpython/pull/124712 Issue Tracking Patch
https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/ Vendor Advisory
https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html
https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
https://security.netapp.com/advisory/ntap-20250425-0006/
cvelogic Threat Intelligence