Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-46567: LLama Factory insecure deserialization in llamafy_baichuan2.py via torch.load()

Identifier
CVE-2025-46567
Published
Record updated
View JSON
Affected
  • llamafactory <= 0.9.2
Fixed in
0.9.3
  • released June 16, 2025, 46 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2025-46567 affects LLama Factory versions prior to 1.0.0. The llamafy_baichuan2.py script calls torch.load() on user-supplied .bin files from an input directory, which is insecure deserialization (CWE-502). A crafted .bin file can execute arbitrary commands during deserialization.

Mitigation

This issue has been patched in version 1.0.0.