Katalog CVE

CVE-2026-115924

WysokieCVSS 8.6
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.39%

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

Streszczenie

Rembg przed wersją 2.0.82 przekazuje kontrolowany przez atakującego parametr extras.sam_model do ścieżek plików SAM i adresów URL pobierania z GitHuba bez przypiętego hasha. Nieuwierzytelniony atakujący może połączyć path traversal z fragmentem URL, aby pobrać złośliwe pliki ONNX obok czytelnego pliku docelowego i ujawnić jego zawartość w zwracanej masce PNG. Problem naprawiono w wersji 2.0.82.

Ocena ryzyka

Atakujący może odczytać dowolne pliki dostępne dla procesu rembg oraz wykonać dowolne obliczenia ONNX, co prowadzi do wycieku danych i potencjalnego wykonania kodu. Ryzyko dotyczy publicznie dostępnego endpointu /api/remove.

Rekomendacja

Zaktualizuj rembg do wersji 2.0.82 lub nowszej. Ogranicz dostęp do endpointu /api/remove i nie zezwalaj na wartości sam_model pochodzące od użytkownika.

Inne podatności w Rembg

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

Rembg is a tool to remove images background. Prior to 2.0.82, the public /api/remove endpoint passes attacker-controlled extras.sam_model through rembg/commands/s_command.py to rembg/sessions/sam.py, where it is interpolated into SAM filenames and GitHub download URLs passed to pooch.retrieve() without a pinned hash. An unauthenticated attacker can supply a sam_model value combining path traversal with URL fragment syntax to exploit the HTTP request discarding the fragment while the local POSIX path retains it. The first request primes the attacker-selected path tree, and an identical repeated request downloads malicious ONNX encoder and decoder files beside a readable target file. The graphs can load the target through ONNX external data and encode its bytes into the returned PNG mask, disclosing complete files accessible to the rembg process and allowing arbitrary ONNX computation. This issue is fixed in version 2.0.82.

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