Skip to main content
← All vulnerabilities
CVE-2025-53002PYSEC-2026-1576GHSA-XJ56-P8MM-QMXJ

LLaMA-Factory Remote Code Execution (RCE) Vulnerability

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.9.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

LLaMA-Factory is a tuning library for large language models. A remote code execution vulnerability was discovered in LLaMA-Factory versions up to and including 0.9.3 during the LLaMA-Factory training process. This vulnerability arises because the `vhead_file` is loaded without proper safeguards, allowing malicious attackers to execute arbitrary malicious code on the host system simply by passing a malicious `Checkpoint path` parameter through the `WebUI` interface. The attack is stealthy, as the victim remains unaware of the exploitation. The root cause is that the `vhead_file` argument is loaded without the secure parameter `weights_only=True`. Version 0.9.4 contains a fix for the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • hiyouga LLaMA-Factory

    fixed in 0.9.4

  • llamafactoryPyPI

    through 0.9.3

References 3

GitHub · hiyouga/LLaMA-Factory

drive.google.com