PoC Monitor
← All CVEs
CVE-2025-46567published 1 May 2025 17:20 UTCData: JSON · API

Hiyouga LLaMA-Factory

LLaMA-Factory Allows Arbitrary Code Execution via Unsafe Deserialization in Ilamafy_baichuan2.py

LLama Factory enables fine-tuning of large language models. Prior to version 1.0.0, a critical vulnerability exists in the `llamafy_baichuan2.py` script of the LLaMA-Factory project. The script performs insecure deserialization using `torch.load()` on user-supplied `.bin` files from an input directory. An attacker can exploit this behavior by crafting a malicious `.bin` file that executes arbitrary commands during deserialization. This issue has been patched in version 1.0.0.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by NVD · CWE-502
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

hiyouga LLaMA-Factory
  • < 1.0.0

Fixed in 1.0.0

Mitigation

Upgrade LLaMA-Factory to 1.0.0 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published1 May 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.