CVE-2025-46567

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-46567
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46567.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-46567
Aliases
Related
Published
2025-05-01T18:15:58Z
Modified
2025-06-17T16:06:28.985130Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/hiyouga/llama-factory

Affected ranges

Type
GIT
Repo
https://github.com/hiyouga/llama-factory
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.0.9
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.3.2
v0.3.3
v0.4.0
v0.5.0
v0.5.2
v0.5.3
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.7.0
v0.7.1
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.9.0
v0.9.1
v0.9.2