Downloads · 30 days
0
rajasingh010/vllm-torch-rce
vllm-torch-rce is a machine learning model from rajasingh010. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
File: vllm/modelexecutor/weightutils.py Function: hfmodelweightsiterator() CVE: CVE-2025-24357
Downloads · 30 days
0
Access
Public
Updated Apr 4, 2026
Repo size
1.5 KB
Likes
0
Public
Click a slice to open those files.
.pt1.5 KB · 36%
From the Hugging Face model README
File: vllm/model_executor/weight_utils.py
Function: hf_model_weights_iterator()
CVE: CVE-2025-24357
vLLM <= 0.7.0 uses torch.load(weights_only=False) when loading model
checkpoints from HuggingFace. This deserializes pickle payloads inside
malicious .pt/.pth files, enabling arbitrary code execution.
# Vulnerable code in vllm/model_executor/weight_utils.py
def hf_model_weights_iterator(...):
...
checkpoint = torch.load(filename, weights_only=False) # RCE here!
weights_only=Trueimport torch
checkpoint = torch.load("malicious_vllm_model.pt", weights_only=False)