Katalog CVE

CVE-2021-22922

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

Prawdopodobieństwo exploitacji (EPSS)

Bardzo wysokie ryzyko
4.33%

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

Streszczenie

Gdy curl jest instruowany do pobierania treści za pomocą funkcji metalink, zawartość jest weryfikowana względem hasha podanego w pliku XML metalink. Plik metalink wskazuje klientowi, jak uzyskać tę samą treść z różnych adresów URL, potencjalnie hostowanych przez różne serwery. Jeśli jeden z serwerów hostujących treść został naruszony, a zawartość pliku na tym serwerze została zastąpiona zmodyfikowanym ładunkiem, curl powinien to wykryć, gdy hash pliku nie zgadza się po zakończonym pobieraniu. Powinien usunąć zawartość i spróbować pobrać ją z innego adresu URL. Tak się nie dzieje; zamiast tego taka niezgodność hasha jest tylko wspomniana w tekście, a potencjalnie złośliwa zawartość pozostaje w pliku na dysku.

Ocena ryzyka

Użytkownik może pobrać i zachować złośliwe pliki, które powinny zostać odrzucone, co może prowadzić do infekcji systemu lub naruszenia bezpieczeństwa.

Rekomendacja

Zaktualizuj curl do wersji, która poprawnie obsługuje niezgodność hasha w metalink, lub unikaj korzystania z funkcji metalink dla niezaufanych źródeł.

Inne podatności w curl

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

When curl is instructed to download content using the metalink feature, thecontents is verified against a hash provided in the metalink XML file.The metalink XML file points out to the client how to get the same contentfrom a set of different URLs, potentially hosted by different servers and theclient can then download the file from one or several of them. In a serial orparallel manner.If one of the servers hosting the contents has been breached and the contentsof the specific file on that server is replaced with a modified payload, curlshould detect this when the hash of the file mismatches after a completeddownload. It should remove the contents and instead try getting the contentsfrom another URL. This is not done, and instead such a hash mismatch is onlymentioned in text and the potentially malicious content is kept in the file ondisk.

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