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

- Severity: Medium 6.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-05-02T22:00:19.859Z
- Modified: 2026-10-26T20:10:00.160Z
- Also known as: GHSA-6m5f-673f-5vh7, PYSEC-2026-3062
- Weaknesses: CWE-20, CWE-74, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- 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
- sglang (PyPI): up to 0.5.9

## Every score

- VulDB: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X`
- VulDB: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 5.6 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`

## References

- <https://vuldb.com/vuln/360817> (exploit, technical-description, vdb-entry, web)
- <https://github.com/gouldnicholas/CVE-2026-7669-PoC> (exploit, web)
- <https://vuldb.com/vuln/360817/cti> (permissions-required, signature, web)
- <https://vuldb.com/submit/799263> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7669> (advisory)
- <https://github.com/sgl-project/sglang> (package)
- <https://pypi.org/project/sglang> (package)
- <https://github.com/advisories/GHSA-6m5f-673f-5vh7> (advisory)

## Sources

- CVE List: [CVE-2026-7669](https://www.cve.org/CVERecord?id=CVE-2026-7669), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-6m5f-673f-5vh7](https://github.com/advisories/GHSA-6m5f-673f-5vh7), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-7669](https://nvd.nist.gov/vuln/detail/CVE-2026-7669), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-3062](https://osv.dev/vulnerability/PYSEC-2026-3062), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-7669 · Whole record: https://cve.day/CVE-2026-7669.json · Rebuilt by cve.day 2026-11-25T22:59:20.467Z
