Katalog CVE

CVE-2023-41040

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

Prawdopodobieństwo exploitacji (EPSS)

Podwyższone ryzyko
1.01%

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

Streszczenie

GitPython to biblioteka Pythona służąca do interakcji z repozytoriami Git. W wyniku braku weryfikacji lokalizacji plików, GitPython może odczytać dowolny plik z systemu, co stwarza ryzyko ataku.

Ocena ryzyka

Atakujący może wykorzystać tę podatność do wywołania odmowy usługi w programie, co może prowadzić do zakłócenia jego działania.

Rekomendacja

Zaleca się aktualizację GitPython do wersji 3.1.37, aby usunąć tę podatność.

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

GitPython is a python library used to interact with Git repositories. In order to resolve some git references, GitPython reads files from the `.git` directory, in some places the name of the file being read is provided by the user, GitPython doesn't check if this file is located outside the `.git` directory. This allows an attacker to make GitPython read any file from the system. This vulnerability is present in https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175. That code joins the base directory with a user given string without checking if the final path is located outside the base directory. This vulnerability cannot be used to read the contents of files but could in theory be used to trigger a denial of service for the program. This issue has been addressed in version 3.1.37.

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