{
  "id": "CVE-2026-33625",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-33625",
  "published_at": "2026-09-18T17:13:37.133Z",
  "title": "LMDeploy vulnerable to arbitrary code execution via eval() of untrusted quant_dtype in model config loading",
  "vendor": "InternLM",
  "product": "lmdeploy",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "LMDeploy is a toolkit for compressing, deploying, and serving large language models. Versions 012.1 through 0.12.2 contain a code injection vulnerability in `lmdeploy/pytorch/config.py` line 620 that allows an attacker to execute arbitrary Python code by publishing a malicious HuggingFace model with a crafted `quantization_config.quant_dtype` value. When a user loads the model with lmdeploy, the `quant_dtype` is passed to `eval(f'torch.{quant_dtype}')` without any validation. Version 0.12.3 contains a patch.",
  "cwe": "CWE-400",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "InternLM",
        "product": "lmdeploy",
        "ranges": [
          "\u003e= 0.12.1, \u003c 0.12.3"
        ],
        "fixed_in": [
          "0.12.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade lmdeploy to 0.12.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/InternLM/lmdeploy/security/advisories/GHSA-3hmm-rh5q-gwwr"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/InternLM/lmdeploy/releases/tag/v0.12.3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
