What’s Vulnerable › Vulnerabilities
CVE-2024-14021: LlamaIndex <= 0.11.6 BGEM3Index Unsafe Deserialization
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-01-12 · updated 2026-07-14
- Weakness: CWE-502
Description
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.
Affected products
- run-llama/llama_index: through 0.11.6
References
- https://github.com/run-llama/llama_index
- https://huntr.com/bounties/ab4ceeb4-aa85-4d1c-aaca-4eda1b71fc12
- https://www.llamaindex.ai/
- https://www.vulncheck.com/advisories/llamaindex-bgem3index-unsafe-deserialization
Get alerted when CVE-2024-14021 or the next vulnerability affects your stack