Downloads · 30 days
0
xiaoyaoes/stylegan3-mfv-poc
stylegan3-mfv-poc is a machine learning model from xiaoyaoes. 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 mit.
Vulnerability: RCE via pickle.load + exec() in custom unpickler mechanism
Downloads · 30 days
0
Access
Public
Updated Jun 23, 2026
Repo size
364 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 51%
From the Hugging Face model README
Vulnerability: RCE via pickle.load + exec() in custom unpickler mechanism
Path: torch_utils/persistence.py:87 (pickle.load) + :226 (exec in _src_to_module)
torch_utils/persistence.py:87: old_net = pickle.load(f)
malicious.pkl — uses __reduce__() → os.systemtorch_utils/persistence.py:226: exec(src, module.__dict__)
malicious_exec_module_src.pkl — injects arbitrary Python code via module_src fieldmetrics/metric_utils.py:50,144dataset_tool.py:162python -c "
import pickle
with open('malicious.pkl', 'rb') as f:
pickle.load(f)
"