Katalog CVE

CVE-2026-7669

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

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.37%

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

Streszczenie

W sgl-project SGLang do wersji 0.5.9 funkcja get_tokenizer w pliku hf_transformers_utils.py komponentu HuggingFace Transformer Handler, przy przekazaniu trust_remote_code=False, może po cichu ponownie wywołać AutoTokenizer.from_pretrained z trust_remote_code=True, jeśli transformers v5 zwróci TokenizersBackend. Może to prowadzić do wykonania dowolnego kodu Python złośliwego tokenizera.py z repozytorium modelu. Podatność dotyczy wszystkich wersji SGLang z powodu przypięcia transformers==5.3.0.

Ocena ryzyka

Atakujący może dostarczyć złośliwe repozytorium modelu, które zostanie wykonane w procesie SGLang mimo jawnego ustawienia bezpieczeństwa, prowadząc do zdalnego wykonania kodu. Może to skutkować pełnym przejęciem systemu.

Rekomendacja

Zaktualizuj SGLang do wersji zawierającej poprawkę lub unikaj używania niezaufanych repozytoriów modeli. Rozważ przypięcie transformers do wersji bez podatności i monitoruj logi pod kątem nieoczekiwanego wykonania kodu.

Inne podatności w SGLang

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

A vulnerability was detected in sgl-project SGLang up to 0.5.9. Impacted is the function get_tokenizer of the file python/sglang/srt/utils/hf_transformers_utils.py of the component HuggingFace Transformer Handler. The manipulation of the argument trust_remote_code with the input False as part of Boolean results in code injection. The attack can be executed remotely. A high complexity level is associated with this attack. The exploitability is considered difficult. In get_tokenizer(), when the caller passes trust_remote_code=False and HuggingFace transformers v5 returns a TokenizersBackend instance (the generic fallback for tokenizer classes not in the registry), SGLang silently re-invokes AutoTokenizer.from_pretrained with trust_remote_code=True, overriding the caller's explicit security setting. A model repository containing a malicious tokenizer.py referenced via auto_map in tokenizer_config.json will execute arbitrary Python in the SGLang process during this second call. No log line or warning is emitted. The override affects all current SGLang versions because transformers==5.3.0 is pinned in pyproject.toml. Both tokenizer_mode="auto" and tokenizer_mode="slow" are affected. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

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