{"id":"CVE-2026-7669","published":"2026-05-02T22:00:19Z","modified":"2026-05-05T00:31:40Z","title":"sgl-project SGLang HuggingFace Transformer hf_transformers_utils.py get_tokenizer code injection","vendor":"sgl-project","product":"SGLang","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.6,"severity":"MEDIUM","version":"3.1","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00368,"percentile":0.31499,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://vuldb.com/vuln/360817","tags":["vdb-entry","technical-description","exploit"]},{"url":"https://vuldb.com/vuln/360817/cti","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/submit/799263","tags":["third-party-advisory"]},{"url":"https://github.com/gouldnicholas/CVE-2026-7669-PoC","tags":["exploit"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":6.3},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.92}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-05-04","earliestUrl":"https://github.com/gouldnicholas/CVE-2026-7669-PoC","repos":[{"name":"gouldnicholas/CVE-2026-7669-PoC","url":"https://github.com/gouldnicholas/CVE-2026-7669-PoC","stars":1,"created":"2026-05-04"}]},"first":{"date":"2026-05-04","source":"PoC-in-GitHub","url":"https://github.com/gouldnicholas/CVE-2026-7669-PoC"},"provenance":"source"},"vendorSlug":"sgl-project","affectedVersions":[{"vendor":"sgl-project","product":"SGLang","versions":["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"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-05T00:31:25.310003Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"sglang","vulnerableRanges":["<=0.5.9"],"patched":[],"from":["GHSA-6m5f-673f-5vh7","PYSEC-2026-3062"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-26802","exploited":false,"provenance":"source"},"exploitRefs":["https://vuldb.com/vuln/360817","https://github.com/gouldnicholas/CVE-2026-7669-PoC"]}