{
  "id": "CVE-2026-58116",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-58116",
  "published_at": "2026-06-30T12:54:24.7Z",
  "title": "LLaMA-Factory 0.9.5 Remote Code Execution via WebUI Model Path",
  "vendor": "hiyouga",
  "product": "LlamaFactory",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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": "LLaMA-Factory through 0.9.5 contains a remote code execution vulnerability that allows attackers with WebUI access to execute arbitrary Python code by supplying a malicious model path in the Chat or Training interfaces. The application passes user-supplied model path input unvalidated into AutoTokenizer.from_pretrained() and AutoModel.from_pretrained() with a hardcoded trust_remote_code=True parameter, causing the Hugging Face transformers library to fetch and execute arbitrary code from a remote or local model repository with the privileges of the server process.",
  "cwe": "CWE-829",
  "cpes": [
    "cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "hiyouga",
        "product": "LlamaFactory",
        "ranges": [
          "\u003c= 0.9.5"
        ],
        "fixed_in": null
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8",
      "source": "cvelist",
      "title": "Researcher Disclosure",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
