CVE-2024-14021 Details
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.
A vulnerability exists in LlamaIndex versions through 0.11.6, specifically in the BGEM3Index class's load_from_disk() method. This vulnerability arises from unsafe deserialization using pickle.load() to read a user-supplied file, multi_embed_store.pkl, without proper validation. An attacker can exploit this by crafting a persist directory with a malicious pickle file, leading to arbitrary code execution when the index is loaded from disk.
Users are advised to update to LlamaIndex version 0.11.7 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/run-llama/llama_index | [email protected] | Product |
| https://huntr.com/bounties/ab4ceeb4-aa85-4d1c-aaca-4eda1b71fc12 | [email protected] | ExploitThird Party Advisory |
| https://www.llamaindex.ai/ | [email protected] | Product |
| https://www.vulncheck.com/advisories/llamaindex-bgem3index-unsafe-deserialization | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| llamaindex llamaindex | <= 0.11.6 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 15, 2026 | Initial Analysis | [email protected] |
| Jan 12, 2026 | New CVE Received | [email protected] |