Skip to content
HighVulnerability

CVE-2024-14021: LlamaIndex unsafe deserialization in BGEM3Index.load_from_disk

Identifier
CVE-2024-14021
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

CVE-2024-14021 affects LlamaIndex (run-llama/llama_index) versions up to and including 0.11.6. The unsafe deserialization flaw sits in BGEM3Index.load_from_disk() in llama_index/indices/managed/bge_m3/base.py, which calls pickle.load() on multi_embed_store.pkl from a user-supplied persist_dir without validation. An attacker who supplies a crafted persist directory containing a malicious pickle file can achieve arbitrary code execution when a victim loads the index from disk. VulnCheck rates it CVSS 4.0 8.4 (High); NVD has not yet provided an assessment.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.