Vulnerabilities

CVE-2024-9287

High 7.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2024-10-22
Last modified
2026-10-30
Assigned by
cna@python.org
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.6 % higher than 48 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Python Python < 3.9.21 Affected
Python Python 3.14.0 Affected
Python Python ≥ 3.10.0, < 3.10.16 Affected
Python Python ≥ 3.11.0, < 3.11.11 Affected
Python Python ≥ 3.12.0, < 3.12.8 Affected
Python Python ≥ 3.13.0, < 3.13.1 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities