VDB

CVE-2024-9287

CVE-2024-9287 PUBLISHED CVSS 5.3 MEDIUM

Virtual environment (venv) activation scripts don't quote paths

Reported by psf · Published October 22, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-develAmazon Linux3.9.21-1.amzn2023.0.1, 3.7.16-1.amzn2.0.17
python-3.10Wolfi3.10.15-r3
python-3.9Chainguard3.9.20-r3
python3-idleAmazon Linux3.9.21-1.amzn2023.0.1
libpythonBitnami3.13.1, 3.12.8, 3.11.11, 3.10.16, 3.9.21
python3-libsAmazon Linux3.9.21-1.amzn2023.0.1, 3.7.16-1.amzn2.0.17
python3Alpine3.12.8-r0, 3.11.11-r0
python3.12-tkinterAmazon Linux3.12.8-1.amzn2023.0.1
python-3.11Chainguard3.11.10-r4
python-3.12Wolfi3.12.7-r1
python3Amazon Linux3.9.21-1.amzn2023.0.1, 3.7.16-1.amzn2.0.17
python3.12-debugAmazon Linux3.12.8-1.amzn2023.0.1

43 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
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/U:Green

Affected products

VendorProductVersions
Python Software FoundationCPython0, 3.10.0, 3.11.0
amazon:2023python3-devel0
wolfipython-3.100
chainguardpython-3.90
amazon:2023python3-idle0
amazon:2python3-libs0
pythoncpython0
alpinepython30, 0
amazon:2023python3.12-tkinter0
chainguardpython-3.110
wolfipython-3.120
amazon:2023python30
amazon:2023python3.12-debug0
amazon:2023python3-tkinter0
amazon:2023python3.12-test0
amazon:2023python3.11-test0
amazon:2023python3-libs0
amazon:2python3-tkinter0
amazon:2023python3.110
amazon:2023python3-test0

…and 22 more

Timeline

  • Oct 21, 2024 Fix PR Merged
  • Oct 22, 2024 Coalition ESS Score (17 in total, the first dated here)
  • Oct 22, 2024 CVE Published
  • Oct 23, 2024 EPSS Score (30 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (42 in total, the first dated here)
  • Nov 1, 2026 Distribution Patch (21 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-9287
vulnetix vdb fixes CVE-2024-9287

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-9287/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›