LMDeploy: Hardcoded trust_remote_code=True is an implicit unsafe remote-code load path with no user opt-out (InternLM lmdeploy)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.16 % · percentile 5 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Deferred
Description
LMDeploy is a toolkit for compressing, deploying, and serving large language models. In versions 0.12.3 and prior, hardcoded "trust_remote_code=True" enables HF supply-chain RCE without user opt-in. Version 0.13.0 patches the issue.
Weaknesses (CWE)
- CWE-94 — Improper Control of Generation of Code
- CWE-915 — Improperly Controlled Modification of Dynamically-Determined Object Attributes
- CWE-1188 — Initialization of a Resource with an Insecure Default
References
- https://github.com/InternLM/lmdeploy/security/advisories/GHSA-9xq9-36w5-q796
- https://github.com/github/advisory-database/pull/4511
- https://github.com/InternLM/lmdeploy/commit/81be52961aa324fd5cd3cacebffba1ba051bc107
- https://github.com/InternLM/lmdeploy/blob/v0.13.0/lmdeploy/version.py
- https://github.com/InternLM/lmdeploy/releases/tag/v0.13.0
- https://github.com/pypa/advisory-database/tree/main/vulns/lmdeploy/PYSEC-2026-2608.yaml
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | GitHub_M |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-9xq9-36w5-q796 — lmdeploy: Hardcoded trust_remote_code=True is an implicit unsafe remote-code load path with no user opt-out
- PYSEC-2026-2608 — lmdeploy: Hardcoded trust_remote_code=True is an implicit unsafe remote-code load path with no user opt-out
European references
- ENISA EUVD · EUVD-2026-35874
- GCVE · GCVE-0-2026-46517
Affected products
| Product | Versions |
|---|---|
| InternLM · lmdeploy | affected <= 0.12.3 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |