Live threats

All CVEs / Python

CVE-2024-9287Python

Medium 5.3

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
Weakness (CWE)
CWE-428, CWE-77
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python.

Affected products (CPE)

VendorProductVersions
pythonpython< 3.9.21
pythonpython≥ 3.10.0 < 3.10.16
pythonpython≥ 3.11.0 < 3.11.11
pythonpython≥ 3.12.0 < 3.12.8
pythonpython≥ 3.13.0 < 3.13.1
pythonpython3.14.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.