Downloads · 30 days
0
wyhsec/llama-index-pickle-mfv-poc
llama-index-pickle-mfv-poc is a machine learning model from wyhsec. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a proof-of-concept malicious pickle file created solely to demonstrate a responsibly-disclosed vulnerability in the llamaindex project, submitted via huntr's Model File Vulnerability (MFV) pro…
Downloads · 30 days
0
Access
Public
Updated Jul 3, 2026
Repo size
178 B
Likes
0
Public
Click a slice to open those files.
.md1.8 KB · 51%
From the Hugging Face model README
This repository contains a proof-of-concept malicious pickle file created solely to demonstrate a responsibly-disclosed vulnerability in the llama_index project, submitted via huntr's Model File Vulnerability (MFV) program.
multi_embed_store.pkl is a standard Python pickle stream containing a
single object whose class defines __reduce__ to invoke os.system(...)
during deserialization. This demonstrates that any application calling
pickle.load() on an untrusted file without a restricted Unpickler
allowlist is vulnerable to arbitrary code execution (CWE-502).
The embedded payload is intentionally non-destructive: it only appends
a single timestamped line to /tmp/huntr_mfv_pickle_poc.txt to prove code
execution occurred (whoami/hostname/timestamp) - it does not exfiltrate,
delete, or modify anything else.
llama-index-indices-managed-bge-m3 — BGEM3Index.load_from_disk()llama-index-vector-stores-txtai — TxtaiVectorStore.from_persist_path()Both call pickle.load() directly on a file from a caller-supplied
"persist directory" with no restriction on which classes may be
reconstructed.
pickle.load() unless you understand
exactly what it does and are doing so intentionally to reproduce the
reported vulnerability.Filed as part of responsible disclosure. See the corresponding huntr MFV report for full reproduction steps and impact analysis.