7.8
HIGH CVSS 3.1
CVE-2024-9287
Virtual environment (venv) activation scripts don't quote paths
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.

INFO

Published Date :

Oct. 22, 2024, 5:15 p.m.

Last Modified :

Oct. 30, 2026, 11:17 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2024-9287 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Python python
2 Python cpython
1 Libexpat_project libexpat
1 Python_software_foundation cpython
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
CVSS 4.0 MEDIUM [email protected]
Solution
This vulnerability in Python's venv module requires updating affected Python packages.
  • Update affected Python packages to remediate the vulnerability.
  • Consult vendor advisories for specific update instructions.
Public PoC/Exploit Available at Github

CVE-2024-9287 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-9287 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

CVE-Reproducer-System :一个基于大模型的漏打智能复现系统,采用五阶段流水线结构:CVE信息收集,RAG证据增强融合,环境配置生成,PoC代码生成,Validator容器化执行确认即迭代修复,此处公开了部分测试生成结果

Shell Python

Updated: 6 months ago
0 stars 0 fork 0 watcher
Born at : May 2, 2026, 9:16 a.m. This repo has been linked 41 different CVEs too.

None

Updated: 8 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Feb. 20, 2026, 12:26 p.m. This repo has been linked 9 different CVEs too.

None

Updated: 7 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : Oct. 18, 2021, 11:07 a.m. This repo has been linked 37 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-9287 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-9287 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Oct. 30, 2026

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html
    Added Reference https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
    Added Reference https://security.netapp.com/advisory/ntap-20250425-0006/
    Removed Reference https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html
    Removed Reference https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
    Removed Reference https://security.netapp.com/advisory/ntap-20250425-0006/
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 30, 2026

    Action Type Old Value New Value
    Added Affected Affected value removed. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2024/9xxx/CVE-2024-9287.json">CVE-2024-9287</a>
    Removed SSVC {'id': 'CVE-2024-9287', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2025-07-22T00:00:00+00:00'}
    Added SSVC {'id': 'CVE-2024-9287', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2025-07-23T03:55:30.785809Z'}
  • CVE Modified by [email protected]

    Oct. 30, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7
    Added Reference https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db
    Added Reference https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8
    Added Reference https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97
    Added Reference https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b
    Added Reference https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483
    Added Reference https://github.com/python/cpython/issues/124651
    Added Reference https://github.com/python/cpython/pull/124712
    Added Reference https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/
    Removed Reference https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7
    Removed Reference https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db
    Removed Reference https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8
    Removed Reference https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97
    Removed Reference https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b
    Removed Reference https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483
    Removed Reference https://github.com/python/cpython/issues/124651
    Removed Reference https://github.com/python/cpython/pull/124712
    Removed Reference https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/
    Removed Reference Type https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 Types: Patch
    Removed Reference Type https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db Types: Patch
    Removed Reference Type https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8 Types: Patch
    Removed Reference Type https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97 Types: Patch
    Removed Reference Type https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b Types: Patch
    Removed Reference Type https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 Types: Patch
    Removed Reference Type https://github.com/python/cpython/issues/124651 Types: Issue Tracking
    Removed Reference Type https://github.com/python/cpython/pull/124712 Types: Issue Tracking, Patch
    Removed Reference Type https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/ Types: Vendor Advisory
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://github.com/python/cpython', 'vendor': 'Python Software Foundation', 'modules': ['venv'], 'product': 'CPython', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '3.9.21', 'versionType': 'python'}, {'status': 'affected', 'version': '3.10.0', 'lessThan': '3.10.16', 'versionType': 'python'}, {'status': 'affected', 'version': '3.11.0', 'lessThan': '3.11.11', 'versionType': 'python'}, {'status': 'affected', 'version': '3.12.0', 'lessThan': '3.12.8', 'versionType': 'python'}, {'status': 'affected', 'version': '3.13.0', 'lessThan': '3.13.1', 'versionType': 'python'}, {'status': 'affected', 'version': '3.14.0a1', 'lessThan': '3.14.0a2', 'versionType': 'python'}], 'defaultStatus': 'unaffected'}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:python:cpython:*:*:*:*:*:*:*:*'], 'vendor': 'python', 'product': 'cpython', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'python', 'lessThanOrEqual': '3.13.0'}], 'defaultStatus': 'unknown'}]
    Added SSVC {'id': 'CVE-2024-9287', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2025-07-22T00:00:00+00:00'}
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 03, 2025

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html
    Added Reference https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Apr. 25, 2025

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20250425-0006/
  • Initial Analysis by [email protected]

    Feb. 10, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE NIST CWE-77
    Added CPE Configuration OR *cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions up to (excluding) 3.9.21 *cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.10.0 up to (excluding) 3.10.16 *cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.11.0 up to (excluding) 3.11.11 *cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.12.0 up to (excluding) 3.12.8 *cpe:2.3:a:python:python:*:*:*:*:*:*:*:* versions from (including) 3.13.0 up to (excluding) 3.13.1 *cpe:2.3:a:python:python:3.14.0:alpha1:*:*:*:*:*:*
    Changed Reference Type https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 No Types Assigned https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 Patch
    Changed Reference Type https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db No Types Assigned https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db Patch
    Changed Reference Type https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8 No Types Assigned https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8 Patch
    Changed Reference Type https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97 No Types Assigned https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97 Patch
    Changed Reference Type https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b No Types Assigned https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b Patch
    Changed Reference Type https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 No Types Assigned https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 Patch
    Changed Reference Type https://github.com/python/cpython/issues/124651 No Types Assigned https://github.com/python/cpython/issues/124651 Issue Tracking
    Changed Reference Type https://github.com/python/cpython/pull/124712 No Types Assigned https://github.com/python/cpython/pull/124712 Issue Tracking, Patch
    Changed Reference Type https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/ No Types Assigned https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/ Vendor Advisory
  • CVE Modified by [email protected]

    Jan. 31, 2025

    Action Type Old Value New Value
    Added Reference https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b
  • CVE Modified by [email protected]

    Nov. 04, 2024

    Action Type Old Value New Value
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7 [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8 [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97 [No types assigned]
  • CVE Modified by [email protected]

    Oct. 30, 2024

    Action Type Old Value New Value
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483 [No types assigned]
  • CVE Received by [email protected]

    Oct. 22, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Python Software Foundation https://github.com/python/cpython/issues/124651 [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/pull/124712 [No types assigned]
    Added Reference Python Software Foundation https://mail.python.org/archives/list/[email protected]/thread/RSPJ2B5JL22FG3TKUJ7D7DQ4N5JRRBZL/ [No types assigned]
    Added CWE Python Software Foundation CWE-428
    Added CVSS V4.0 Python Software Foundation 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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.