Katalog CVE

CVE-2026-44827

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

Prawdopodobieństwo exploitacji (EPSS)

Podwyższone ryzyko
0.72%

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

Streszczenie

W diffusers przed wersją 0.38.0 funkcja `_resolve_custom_pipeline_and_cls` domyślnie interpoluje `custom_pipeline` jako `None.py`, co pozwala na pobranie i wykonanie złośliwego pliku z repozytorium Hugging Face Hub podczas standardowego wywołania `from_pretrained()`. Mechanizm omija zabezpieczenie `trust_remote_code=True`, umożliwiając ciche zdalne wykonanie kodu.

Ocena ryzyka

Atakujący może uzyskać wykonanie dowolnego kodu w środowisku ofiary, co prowadzi do pełnego przejęcia systemu, kradzieży danych lub dalszej eskalacji.

Rekomendacja

Zaktualizuj bibliotekę diffusers do wersji 0.38.0 lub nowszej. Unikaj ładowania modeli z niezaufanych repozytoriów Hugging Face Hub.

Inne podatności w diffusers

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

Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, diffusers 0.37.0 allows remote code execution without the trust_remote_code=True safeguard when loading pipelines from Hugging Face Hub repositories. The _resolve_custom_pipeline_and_cls function in pipeline_loading_utils.py performs string interpolation on the custom_pipeline parameter using f"{custom_pipeline}.py". When custom_pipeline is not supplied by the user, it defaults to None, which Python interpolates as the literal string "None.py". If an attacker publishes a Hub repository containing a file named None.py with a class that subclasses DiffusionPipeline, the file is automatically downloaded and executed during a standard DiffusionPipeline.from_pretrained() call with no additional keyword arguments. The trust_remote_code check in DiffusionPipeline.download() is bypassed because it evaluates custom_pipeline is not None as False (since the kwarg was never supplied), while the downstream code path that actually loads the module resolves the None value into a valid filename. An attacker can achieve silent arbitrary code execution by publishing a malicious model repository with a None.py file and a standard-looking model_index.json that references a legitimate pipeline class name, requiring only that a victim calls from_pretrained on the repository. This vulnerability is fixed in 0.38.0.

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