Katalog CVE

CVE-2024-50338

Wysokie
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Git Credential Manager (GCM) to bezpieczny pomocnik do zarządzania poświadczeniami Git, działający na systemach Windows, macOS i Linux. Protokół poświadczeń Git jest oparty na tekście i składa się z par klucz-wartość, jednak dokumentacja Git ogranicza użycie znaku NUL oraz nowych linii w kluczach lub wartościach.

Ocena ryzyka

Nieprawidłowe przetwarzanie nowych linii może prowadzić do błędów w walidacji poświadczeń, co stwarza ryzyko nieautoryzowanego dostępu do repozytoriów Git. Organizacje powinny być świadome potencjalnych luk w zabezpieczeniach związanych z obsługą poświadczeń.

Rekomendacja

Zaleca się aktualizację Git Credential Manager do najnowszej wersji oraz monitorowanie i audytowanie użycia poświadczeń w celu zminimalizowania ryzyka nieautoryzowanego dostępu.

Powiązane podatności

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

Git Credential Manager (GCM) is a secure Git credential helper built on .NET that runs on Windows, macOS, and Linux. The Git credential protocol is text-based over standard input/output, and consists of a series of lines of key-value pairs in the format `key=value`. Git's documentation restricts the use of the NUL (`\0`) character and newlines to form part of the keys or values. When Git reads from standard input, it considers both LF and CRLF as newline characters for the credential protocol by virtue of calling `strbuf_getline` that calls to `strbuf_getdelim_strip_crlf`. Git also validates that a newline is not present in the value by checking for the presence of the line-feed character (LF, `\n`), and errors if this is the case. This captures both LF and CRLF-type newlines. Git Credential Manager uses the .NET standard library `StreamReader` class to read the standard input stream line-by-line and parse the `key=value` credential protocol format. The implementation of the `ReadLineA

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