CVE-2025-53002
Python vulnerability analysis and mitigation

Overview

CVE-2025-53002 is a remote code execution vulnerability discovered in LLaMA-Factory, a tuning library for large language models. The vulnerability affects versions up to and including 0.9.3 and was disclosed on June 26, 2025. The vulnerability exists in the LLaMA-Factory training process where the vhead_file is loaded without proper safeguards (GitHub Advisory, NVD).

Technical details

The vulnerability stems from the vhead_file argument being loaded without the secure parameter weights_only=True. This security flaw allows attackers to execute arbitrary malicious code on the host system by passing a malicious Checkpoint path parameter through the WebUI interface. The vulnerability has been assigned a CVSS v3.1 base score of 8.3 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H. The vulnerability is associated with CWE-94 (Improper Control of Generation of Code) and CWE-502 (Deserialization of Untrusted Data) (GitHub Advisory, Wiz).

Impact

The exploitation of this vulnerability allows remote attackers to execute arbitrary malicious code and OS commands on the server, potentially compromise sensitive data, escalate privileges, and deploy malware or create persistent backdoors in the system. The attack is particularly concerning as it remains stealthy, with the victim unaware of the exploitation (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 0.9.4 of LLaMA-Factory. The fix involves adding the secure parameter weightsonly=True when loading the vheadfile. Users are strongly advised to upgrade to version 0.9.4 or later to mitigate this vulnerability (GitHub Advisory, Wiz).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 11, 2025
CVE-2025-13780CRITICAL9.1
  • PythonPython
  • cpe:2.3:a:pgadmin:pgadmin
NoYesDec 11, 2025
CVE-2025-67644HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 11, 2025
CVE-2025-67720MEDIUM6.5
  • PythonPython
  • pyrofork
NoYesDec 11, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management