Katalog CVE

CVE-2023-6507

ŚrednieCVSS 6.1
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Podwyższone ryzyko
1.33%

Percentyl 68 - wyżej niż 68% wszystkich znanych CVE

Streszczenie

W CPython 3.12.0 w module subprocess na platformach POSIX stwierdzono problem: gdy parametr extra_groups=[] jest używany, proces nie wywołuje setgroups(0, NULL) przed exec(), co powoduje, że nowy proces dziedziczy grupy procesu nadrzędnego. Problem został naprawiony w CPython 3.12.1 i dotyczy tylko procesów uruchomionych z uprawnieniami root.

Ocena ryzyka

Proces uruchomiony z uprawnieniami root może nieumyślnie przekazać niepotrzebne grupy do nowego procesu, co może prowadzić do eskalacji uprawnień lub nieautoryzowanego dostępu do zasobów.

Rekomendacja

Zaleca się aktualizację CPython do wersji 3.12.1 lub nowszej.

Oryginalny opis (angielski, źródło NVD)

An issue was found in CPython 3.12.0 `subprocess` module on POSIX platforms. The issue was fixed in CPython 3.12.1 and does not affect other stable releases. When using the `extra_groups=` parameter with an empty list as a value (ie `extra_groups=[]`) the logic regressed to not call `setgroups(0, NULL)` before calling `exec()`, thus not dropping the original processes' groups before starting the new process. There is no issue when the parameter isn't used or when any value is used besides an empty list. This issue only impacts CPython processes run with sufficient privilege to make the `setgroups` system call (typically `root`).

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS