CVE-2024-14021
LlamaIndex (run-llama/llamaindex) versions up to and including 0.11.6 contain an unsafe deserialization vulnerability in BGEM3Index.loadfromdisk() in llamaindex/indices/managed/bgem3/base.py. The function uses pickle.load() to deserialize multiembedstore.pkl from a user-supplied persistdir 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.
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://www.llamaindex.ai/, https://huntr.com/bounties/ab4ceeb4-aa85-4d1c-aaca-4eda1b71fc12, https://www.vulncheck.com/advisories/llamaindex-bgem3index-unsafe-deserialization, https://github.com/run-llama/llama_index
