CVE-2025-53002
published 2025-06-26CVE-2025-53002: 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…
PriorityP264critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.03%
59.4th percentile
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.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| hiyouga | llama-factory | < 0.9.4 | 0.9.4 |
| msrc | cbl2_kernel_5.15.186.1-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_kernel_5.15.200.1-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_kernel_5.15.202.1-1_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vendor_msrc5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
LLaMA-Factory allows Code Injection through improper vhead_file safeguards
ghsa·2025-06-27
CVE-2025-53002 [HIGH] CWE-94 LLaMA-Factory allows Code Injection through improper vhead_file safeguards
LLaMA-Factory allows Code Injection through improper vhead_file safeguards
### Summary
A critical remote code execution vulnerability was discovered 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`.
Note: In torch versions =2.0.0`.
### Affected Version
Llama Factory versions
2. The `adapter_name_or_path` passed to the training process is then used in `src
OSV
LLaMA-Factory allows Code Injection through improper vhead_file safeguards
osv·2025-06-27
CVE-2025-53002 [HIGH] LLaMA-Factory allows Code Injection through improper vhead_file safeguards
LLaMA-Factory allows Code Injection through improper vhead_file safeguards
### Summary
A critical remote code execution vulnerability was discovered 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`.
Note: In torch versions =2.0.0`.
### Affected Version
Llama Factory versions
2. The `adapter_name_or_path` passed to the training process is then used in `src
Microsoft
drm/i915: Fix a memory leak with reused mmap_offset
vendor_msrc·2025-03-11·CVSS 5.5
CVE-2023-53002 [MEDIUM] CWE-401 drm/i915: Fix a memory leak with reused mmap_offset
drm/i915: Fix a memory leak with reused mmap_offset
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
Linux: Linux
Customer Action Required: Yes
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-06-26
Published