{"id":"CVE-2026-7669","aliases":["EUVD-2026-26802","GHSA-6m5f-673f-5vh7","PYSEC-2026-3062"],"status":"published","title":"sgl-project SGLang HuggingFace Transformer hf_transformers_utils.py get_tokenizer code injection","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.","severity":{"version":"4.0","score":6.3,"vector":"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00368,"percentile":0.30944,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-20","CWE-74","CWE-94"],"published":"2026-05-02T22:00:19Z","modified":"2026-10-26T20:10:00Z","exploits":[{"source":"pocgithub","id":"gouldnicholas/CVE-2026-7669-PoC","title":"gouldnicholas/CVE-2026-7669-PoC","date":"2026-05-04","url":"https://github.com/gouldnicholas/CVE-2026-7669-PoC"}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"sglang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.9"}]}]},{"source":"osv","ecosystem":"PyPI","package":"sglang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.9"}]}],"versions":["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"]},{"source":"osv","ecosystem":"PyPI","package":"sglang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.9"}]}],"versions":["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"]}],"products":[{"vendor":"sgl-project","product":"sglang"}],"references":[{"url":"https://vuldb.com/vuln/360817","tags":["vdb-entry","technical-description","exploit","web"]},{"url":"https://vuldb.com/vuln/360817/cti","tags":["signature","permissions-required","web"]},{"url":"https://vuldb.com/submit/799263","tags":["third-party-advisory","web"]},{"url":"https://github.com/gouldnicholas/CVE-2026-7669-PoC","tags":["exploit","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7669","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6m5f-673f-5vh7","tags":["advisory"]},{"url":"https://github.com/sgl-project/sglang","tags":["package"]},{"url":"https://pypi.org/project/sglang","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-7669","title":"sgl-project SGLang HuggingFace Transformer hf_transformers_utils.py get_tokenizer code injection","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.","status":"published","published":"2026-05-02T22:00:19.859Z","modified":"2026-05-05T00:31:40.051Z","cvss":[{"version":"4.0","score":6.3,"vector":"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","level":"medium","assessor":"cna"},{"version":"3.1","score":5.6,"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","level":"medium","assessor":"cna"},{"version":"3.0","score":5.6,"vector":"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","level":"medium","assessor":"cna"},{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","assessor":"cna"}],"cwes":["CWE-94","CWE-74"],"updated_at":"2026-11-02T14:20:05.830416Z"}],"euvd":[{"id":"EUVD-2026-26802","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.","status":"published","published":"2026-05-02T22:00:19Z","modified":"2026-05-05T00:31:40Z","cvss":[{"version":"4.0","score":6.3,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T19:05:17.549765Z"}],"ghsa":[{"id":"GHSA-6m5f-673f-5vh7","title":"SGLang has an Improper Input Validation/Injection Issue","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 results in deserialization. The attack can be executed remotely. A high complexity level is associated with this attack. The exploitability is considered difficult. The vendor was contacted early about this disclosure but did not respond in any way.","status":"published","published":"2026-05-03T00:31:37Z","modified":"2026-05-07T21:09:30Z","cvss":[{"version":"4.0","score":6.3,"vector":"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","level":"medium"},{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-20","CWE-74"],"updated_at":"2026-11-02T14:40:03.762927Z"}],"nvd":[{"id":"CVE-2026-7669","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.","status":"published","published":"2026-05-02T22:16:24.08Z","modified":"2026-10-26T20:10:00.16Z","cvss":[{"version":"4.0","score":6.3,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"secondary"}],"cwes":["CWE-74","CWE-94"],"updated_at":"2026-11-02T14:12:17.022502Z"}],"osv":[{"id":"GHSA-6m5f-673f-5vh7","title":"SGLang has an Improper Input Validation/Injection Issue","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 results in deserialization. The attack can be executed remotely. A high complexity level is associated with this attack. The exploitability is considered difficult. The vendor was contacted early about this disclosure but did not respond in any way.","status":"published","published":"2026-05-03T00:31:37Z","modified":"2026-07-13T16:43:02.235489118Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"4.0","score":6.3,"vector":"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","level":"medium"}],"cwes":["CWE-20","CWE-74"],"updated_at":"2026-11-02T15:46:39.965326Z"},{"id":"PYSEC-2026-3062","title":"SGLang has an Improper Input Validation/Injection Issue","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 results in deserialization. The attack can be executed remotely. A high complexity level is associated with this attack. The exploitability is considered difficult. The vendor was contacted early about this disclosure but did not respond in any way.","status":"published","published":"2026-07-13T15:02:56.16801Z","modified":"2026-07-13T16:32:48.412027207Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"4.0","score":6.3,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T15:52:56.429374Z"}]}}
