CVE-2024-9287
Beskrivelse
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.
Beskrivelsen gjengis slik kilden har publisert den, på engelsk.
Nøkkelfakta
- Publisert
- 2024-10-22
- Sist endret
- 2026-10-30
- Tildelt av
- cna@python.org
- CVSS-vektor
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Scoret av
- nvd@nist.gov (NVD Primary)
- Sannsynlighet for utnyttelse
-
0.6 %
høyere enn 48 %
av alle kjente sårbarheter
EPSS, neste 30 dager, modell v2026.06.15 - Rettelse finnes
- Ja, se referansene
Berørte produkter
| Leverandør | Produkt | Versjoner | Status |
|---|---|---|---|
| Python | Python | < 3.9.21 | Berørt |
| Python | Python | 3.14.0 | Berørt |
| Python | Python | ≥ 3.10.0, < 3.10.16 | Berørt |
| Python | Python | ≥ 3.11.0, < 3.11.11 | Berørt |
| Python | Python | ≥ 3.12.0, < 3.12.8 | Berørt |
| Python | Python | ≥ 3.13.0, < 3.13.1 | Berørt |
Svakhetstype
-
CWE-77: Improper Neutralization of Special Elements used in a Command
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…
-
CWE-428: Unquoted 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.
Referanser
- https://github.com/python/cpython/commit/633555735a023d3e4d92ba31da35b1205f9ecbd7
- https://github.com/python/cpython/commit/8450b2482586857d689b6658f08de9c8179af7db
- https://github.com/python/cpython/commit/9286ab3a107ea41bd3f3c3682ce2512692bdded8
- https://github.com/python/cpython/commit/ae961ae94bf19c8f8c7fbea3d1c25cc55ce8ae97
- https://github.com/python/cpython/commit/d48cc82ed25e26b02eb97c6263d95dcaa1e9111b
- https://github.com/python/cpython/commit/e52095a0c1005a87eed2276af7a1f2f66e2b6483
- https://github.com/python/cpython/issues/124651
- https://github.com/python/cpython/pull/124712
- https://mail.python.org/archives/list/security-announce@python.org/thread/RSPJ2B5JL22FG3T…
- https://lists.debian.org/debian-lts-announce/2024/11/msg00024.html
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://security.netapp.com/advisory/ntap-20250425-0006/
Relatert hos Berigo
Artikler
-
Falsk CAPTCHA får brukeren til å åpne en tunnel inn i nettverket
Samme produkt
2026-09-01
Microsoft har fulgt kampanjen TerminalFix, der kompromitterte nettsteder viser en falsk Cloudflare-CAPTCHA og ber besøkende lime en kommando inn i Wi…
-
Kryptobiblioteket i Python har fått algoritmene som skal tåle kvantemaskiner
Samme produkt
2026-08-18
Trail of Bits har lagt ML-KEM og ML-DSA inn i pyca/cryptography, finansiert av Sovereign Tech Agency. Biblioteket er den ellevte mest nedlastede pakk…
-
Kundeportaler i Salesforce og ServiceNow tappes for data uten at noen logger inn
Samme produkt
2026-08-14
Reco følger en pågående kampanje selskapet kaller City-Forum, der ett enkelt verktøy skrevet i Go henter ut poster fra kundeportaler i Salesforce Exp…
-
CrashStealer utgir seg for Apples krasjrapport og tømmer nøkkelringen på Mac
Samme produkt
2026-08-05
Kaspersky har beskrevet CrashStealer, en informasjonstyv for macOS som kommer med et falskt installasjonsprogram for videomøter. Programmet er både s…
Berører dette dere?
En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.