Deserialization in Llamaindex
CVE-2024-14021
LlamaIndex (run-llama/llama_index) versions up to and including 0.11.6 contain an unsafe deserialization vulnerability in BGEM3Index.load_from_disk() in llama_index/indices/managed/bge_m3/base.py. The function uses pickle.load() to deserialize multi_embed_store.pkl from a user-supplied persist_dir without validation. An attacker who can provide a crafted persist directory containing a malicious pickle file can trigger arbitrary code execution when the victim loads the index from disk.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.003 (23.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 24th percentile — 23.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Llamaindex
- Run-Llama Llama Index — versions 0
Weakness classification (CWE)
References
- huntr.com/bounties/ab4ceeb4-aa85-4d1c-aaca-4eda1b71fc12 (Exploit, technical-description, Third Party Advisory, exploit)
- www.llamaindex.ai/ (Product, product)
- github.com/run-llama/llama_index (Product, third-party-advisory)
- www.vulncheck.com/advisories/llamaindex-bgem3index-unsafe-deserialization (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2024-14021?
- CVE-2024-14021 is a high-severity vulnerability in Llamaindex, classified under Deserialization of Untrusted Data. CVSS score: 7.8/10. Published 2026-01-12.
- How severe is CVE-2024-14021?
- High severity. CVSS v3 base score is 7.8 out of 10.