Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. lmdeploy
  4. ›
  5. CVE-2026-46517

CVE-2026-46517: lmdeploy: Hardcoded trust_remote_code=True is an implicit unsafe remote-code load path with no user opt-out

May 21, 2026 (updated August 31, 2026)

📋 Reframing (2026-05-02): implicit unsafe remote-code path, not “supply-chain”

The accurate description of this vulnerability is: "get_model_arch and related helpers hardcode trust_remote_code=True with no opt-out, creating an implicit unsafe remote-code load path on every model fetch."

What this report does NOT claim:

  • It is NOT a network-attack RCE — the user supplies the model reference; LMDeploy honors it.
  • It is NOT a “supply chain” CVE in the classical sense (where a benign upstream is compromised) — the user explicitly types the repo name.

What this report DOES claim:

  • Other inference frameworks (vLLM, TGI, Hugging Face transformers itself) all expose --trust-remote-code as opt-in so that users who consciously load known-safe repos can opt in, while users following a tutorial cannot accidentally execute attacker Python by typing a wrong repo name.
  • LMDeploy’s hardcoded True is an implicit trust-boundary override that violates HF Transformers’ default-secure stance (trust_remote_code=False since transformers ≥ 4.30).
  • The fix is a one-line CLI flag (--trust-remote-code) defaulting False, threaded through the three sites, matching the rest of the ecosystem.

Severity should be assessed as hardening / safe-by-default, not as full unauthenticated RCE. CVSS revised to 5.5 Medium (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H × user-must-load qualifier).

Runtime evidence: see 12_lmdeploy_trust_remote_code_F13/runtime_evidence/cloudrun_cpu_verdict.txt.


References

  • github.com/InternLM/lmdeploy/blob/v0.13.0/lmdeploy/version.py
  • github.com/InternLM/lmdeploy/commit/81be52961aa324fd5cd3cacebffba1ba051bc107
  • github.com/InternLM/lmdeploy/releases/tag/v0.13.0
  • github.com/InternLM/lmdeploy/security/advisories/GHSA-9xq9-36w5-q796
  • github.com/advisories/GHSA-9xq9-36w5-q796
  • github.com/github/advisory-database/pull/4511
  • github.com/pypa/advisory-database/tree/main/vulns/lmdeploy/PYSEC-2026-2608.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-46517

Code Behaviors & Features

Detect and mitigate CVE-2026-46517 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.13.0

Fixed versions

  • 0.13.0

Solution

Upgrade to version 0.13.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1188: Initialization of a Resource with an Insecure Default
  • CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/lmdeploy/CVE-2026-46517.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:20 +0000.