p PatchFirst

CVE-2026-7669

CVE-2026-7669 · sgl-project SGLang HuggingFace Transformer hf_transformers_utils.py get_tokenizer code injection

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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.

CVSS 6.3 · Mittel · EPSS 0,4%

Veröffentlicht
Aktualisiert

Technologie-Stack: python

Betroffene Produkte und Versionen

  • sglang

    Softwareversionen
    • 0.5.0: Betroffen
    • 0.5.1: Betroffen
    • 0.5.2: Betroffen
    • 0.5.3: Betroffen
    • 0.5.4: Betroffen
    • 0.5.5: Betroffen
    • 0.5.6: Betroffen
    • 0.5.7: Betroffen
    • 0.5.8: Betroffen
    • 0.5.9: Betroffen

    Keine Korrektur veröffentlicht

  • sglang PyPI

    Softwareversionen
    • 0.1.10
    • 0.1.11
    • 0.1.12
    • 0.1.13
    • 0.1.14
    • 0.1.15
    • 0.1.16
    • 0.1.17
    • 0.1.18
    • 0.1.19
    • 0.1.20
    • 0.1.21
    • 0.1.22
    • 0.1.24
    • 0.1.25
    • 0.1.26
    • 0.1.3
    • 0.1.4
    • 0.1.5
    • 0.1.6
    • 0.1.7
    • 0.1.9
    • 0.2.0
    • 0.2.1
    • 0.2.10
    • 0.2.11
    • 0.2.12
    • 0.2.13
    • 0.2.14
    • 0.2.14.post1
    • 0.2.14.post2
    • 0.2.15
    • 0.2.2
    • 0.2.3
    • 0.2.4
    • 0.2.5
    • 0.2.6
    • 0.2.7
    • 0.2.8
    • 0.2.9
    • 0.2.9.post1
    • 0.3.0
    • 0.3.1
    • 0.3.1.post1
    • 0.3.1.post2
    • 0.3.1.post3
    • 0.3.2
    • 0.3.3
    • 0.3.3.post1
    • 0.3.4
    • 0.3.4.post1
    • 0.3.4.post2
    • 0.3.5
    • 0.3.5.post1
    • 0.3.5.post2
    • 0.3.6
    • 0.3.6.post1
    • 0.3.6.post2
    • 0.3.6.post3
    • 0.4.0
    • 0.4.0.post1
    • 0.4.0.post2
    • 0.4.1
    • 0.4.1.post1
    • 0.4.1.post2
    • 0.4.1.post3
    • 0.4.1.post4
    • 0.4.1.post5
    • 0.4.1.post6
    • 0.4.1.post7
    • 0.4.10
    • 0.4.10.post1
    • 0.4.10.post2
    • 0.4.2
    • 0.4.2.post1
    • 0.4.2.post2
    • 0.4.2.post3
    • 0.4.2.post4
    • 0.4.3
    • 0.4.3.post1
    • 0.4.3.post2
    • 0.4.3.post3
    • 0.4.3.post4
    • 0.4.4
    • 0.4.4.post1
    • 0.4.4.post2
    • 0.4.4.post3
    • 0.4.4.post4
    • 0.4.5
    • 0.4.5.post1
    • 0.4.5.post2
    • 0.4.5.post3
    • 0.4.6
    • 0.4.6.post1
    • 0.4.6.post2
    • 0.4.6.post3
    • 0.4.6.post4
    • 0.4.6.post5
    • 0.4.7
    • 0.4.7.post1
    • 0.4.8
    • 0.4.8.post1
    • 0.4.9
    • 0.4.9.post1
    • 0.4.9.post2
    • 0.4.9.post3
    • 0.4.9.post4
    • 0.4.9.post5
    • 0.4.9.post6
    • 0.5.0rc0
    • 0.5.0rc1
    • 0.5.0rc2
    • 0.5.1
    • 0.5.1.post1
    • 0.5.1.post2
    • 0.5.1.post3
    • 0.5.2
    • 0.5.2rc0
    • 0.5.2rc1
    • 0.5.2rc2
    • 0.5.3
    • 0.5.3.post1
    • 0.5.3.post2
    • 0.5.3.post3
    • 0.5.3rc0
    • 0.5.3rc2
    • 0.5.4
    • 0.5.4.post1
    • 0.5.4.post2
    • 0.5.4.post3
    • 0.5.5
    • 0.5.5.post1
    • 0.5.5.post2
    • 0.5.5.post3
    • 0.5.6
    • 0.5.6.post1
    • 0.5.6.post2
    • 0.5.7
    • 0.5.8
    • 0.5.8.post1
    • 0.5.9
    Betroffene Versionsbereiche
    • ECOSYSTEM: ≤ 0.5.9

    Keine Korrektur veröffentlicht

Originalquellen

Prüfen Sie Ihren Server →