CVE-2024-9287

Advisory lineage Upstream: 0 Downstream: 40
Modified
Published: 22 Oct 2024, 16:34
Last modified:03 Nov 2025, 22:33

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.8 HIGH
v3.1 (nvd)
EPSS Score
0.06% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

22 Oct 2024, 16:34
Published
Vulnerability first disclosed
03 Nov 2025, 22:33
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0MEDIUMScore: 5.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
  • v4.0MEDIUMScore: 5.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
  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 0.06% Percentile: 19%

Techniques & Countermeasures

  • CWE-428Unquoted Search Path or Element

    The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path.

  • CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')

    The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Affected Systems

  • python software foundationcpython

    < 3.9.21 | ≥ 3.10.0, < 3.10.16 | ≥ 3.11.0, < 3.11.11 | ≥ 3.12.0, < 3.12.8 | ≥ 3.13.0, < 3.13.1 | ≥ 3.14.0a1, < 3.14.0a2

  • pythonpython

    < 3.9.21 | ≥ 3.10.0, < 3.10.16 | ≥ 3.11.0, < 3.11.11 | ≥ 3.12.0, < 3.12.8 | ≥ 3.13.0, < 3.13.1 | 3.14.0:alpha1

References (12)