CVE-2025-53002
CVE-2025-53002 is a high-severity vulnerability in Hiyouga Llama-factory with a CVSS 3.x base score of 8.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: High (CVSS 3.x base score 8.3)
- EPSS exploit prediction: 1% (60th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-19200
- Weakness: CWE-94
- Affected product: Hiyouga Llama-factory
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-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 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.
- How severe is CVE-2025-53002?
- CVE-2025-53002 has a CVSS 3.x base score of 8.3, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity low, and availability high.
- Is CVE-2025-53002 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (60th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-53002?
- CVE-2025-53002 affects Hiyouga Llama-factory. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-53002?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2025-53002 have an EU (EUVD) identifier?
- Yes. CVE-2025-53002 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-19200.
- When was CVE-2025-53002 published?
- CVE-2025-53002 was published on 2025-06-26 and last updated on 2026-06-17.
References
- https://drive.google.com/file/d/1AddKm2mllsXfuvL4Tvbn_WJdjEOYXx4y/view?usp=sharing
- https://github.com/hiyouga/LLaMA-Factory/commit/bb7bf51554d4ba8432333c35a5e3b52705955ede
- https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-xj56-p8mm-qmxj
Affected products (1)
- cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*
More vulnerabilities in Hiyouga Llama-factory
- CVE-2026-58116 — Critical (CVSS 9.8): LLaMA-Factory through 0.9.5 contains a remote code execution vulnerability that allows attackers with WebUI access to…
- CVE-2025-61784 — High (CVSS 7.6): LLaMA-Factory is a tuning library for large language models. Prior to version 0.9.4, a Server-Side Request Forgery…
- CVE-2024-52803 — High (CVSS 7.5): LLama Factory enables fine-tuning of large language models. A critical remote OS command injection vulnerability has…
- CVE-2025-46567 — Medium (CVSS 6.1): LLama Factory enables fine-tuning of large language models. Prior to version 1.0.0, a critical vulnerability exists in…
All CVEs affecting Hiyouga Llama-factory →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.