Security mailing lists by PureSourceCode

CVE-2024-9287

MEDIUM 5.3CVSS 4.0

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
22 Oct 2024
Last modified
30 Oct 2026
Assigned by
cna@python.org
NVD status
Modified
Weakness
CWE-428CWE-77
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD cna@python.org (Secondary) CVSS 4.0 MEDIUM 5.3 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
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
< 3.9.21 3.9.21
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.10.0, < 3.10.16 3.10.16
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.11.0, < 3.11.11 3.11.11
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.12.0, < 3.12.8 3.12.8
NVD python python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.13.0, < 3.13.1 3.13.1
NVD python python
cpe:2.3:a:python:python:3.14.0:alpha1:*:*:*:*:*:*
= 3.14.0

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 22 Oct 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.