sgl-project SGLang HuggingFace Transformer hf_transformers_utils.py get_tokenizer code injection
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sgl-project | SGLang | 0.5.0; 0.5.1; 0.5.2; 0.5.3; 0.5.4; 0.5.5; 0.5.6; 0.5.7; 0.5.8; 0.5.9 | — | No fix listed | CNA |
| — | sglang (PyPI) | up to 0.5.9 | — | No fix listed | GHSA-6m5f-673f-5vh7 |
- SGLang Vendorsgl-project Affected 0.5.0; 0.5.1; 0.5.2; 0.5.3; 0.5.4; 0.5.5; 0.5.6; 0.5.7; 0.5.8; 0.5.9 Fixed in — No fix listed CNA
- sglang (PyPI) Vendor— Affected up to 0.5.9 Fixed in — No fix listed GHSA-6m5f-673f-5vh7
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-7669
- 2026-10-03 Alias added: GHSA-6m5f-673f-5vh7
References
More sgl-project vulnerabilities
- TI-2026-76247 Denial of service in SGLang expert-distribution recording endpoint CVSS 4.0HIGH 8.7
- TI-2026-70996 SGLang disables decompression bomb check, enabling denial of service CVSS 4.0HIGH 8.7
- TI-2026-70994 SGLang Memory Exhaustion DoS via Qwen-VL Video Preprocessing CVSS 4.0HIGH 8.7
- TI-2026-70993 Decompression amplification in SGLang load_audio exhausts memory CVSS 4.0HIGH 8.7
- TI-2026-65453 SGLang through 0.5.20 Denial of Service via Duplicate bootstrap_room CVSS 4.0HIGH 8.7
- TI-2026-75290 Code injection in SGLang debug dumper filter CVSS 4.0CRITICAL 9.2
Sources
- CVE-2026-7669 · CVE Program
- CVE-2026-7669 · NVD
- FIRST EPSS
- GHSA-6m5f-673f-5vh7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences