# CVE-2025-53002: PYSEC-2026-1576 - LLaMA-Factory allows Code Injection through improper vhead_file safeguards

Source: https://junglewise.ai/threats/cve-2025-53002-llama-factory-allows-code-injection-through-improper-vhead-file  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2025-53002 · Severity: low · CVSS 3.1 · Published 2026-07-07

LLaMA-Factory allows Code Injection through improper vhead_file safeguards

Technologies: [llamafactory (PyPI)](https://junglewise.ai/threats/technologies/pypi-llamafactory). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-53002 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-53002 being exploited in the wild.

**How severe is CVE-2025-53002?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** llamafactory (PyPI) ECOSYSTEM:introduced=0,last_affected=0.9.3.

**Is there a fix for CVE-2025-53002?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2025-53002?** Check whether you run llamafactory (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- llamafactory (PyPI) ECOSYSTEM:introduced=0,last_affected=0.9.3

## Identifiers

- CVE-2025-53002
- GHSA-xj56-p8mm-qmxj
- PYSEC-2026-1576

## Related threats

- [PYSEC-2026-1573 - LLaMA Factory's Chat API Contains Critical SSRF and LFI Vulnerabilities](https://junglewise.ai/threats/cve-2025-61784-llama-factory-s-chat-api-contains-critical-ssrf-and-lfi)
- [PYSEC-2026-1574 - LLaMA-Factory Allows Arbitrary Code Execution via Unsafe Deserialization in Ilamafy_baichuan2.py](https://junglewise.ai/threats/cve-2025-46567-llama-factory-allows-arbitrary-code-execution-via-unsafe)
- [PYSEC-2026-1575 - LLama Factory Remote OS Command Injection Vulnerability](https://junglewise.ai/threats/cve-2024-52803-llama-factory-remote-os-command-injection-vulnerability)
