CVE-2024-14021
JSON

8.4high

LlamaIndex <= 0.11.6 BGEM3Index Unsafe Deserialization

Severity
8.4high CVSS:4.0 by VulnCheck
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
PYSEC-2026-85

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

Product or packageVersionsReported by
run-llama llama_indexup to 0.11.6CVE List
llamaindex llamaindexup to 0.11.6NVD
llama-index (PyPI)before 0.11.7PyPA Advisory Database

All scores

VulnCheck8.4high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Las versiones de LlamaIndex (run-llama/llama_index) hasta la 0.11.6 inclusive contienen una vulnerabilidad de deserialización insegura en BGEM3Index.load_from_disk() en llama_index/indices/managed/bge_m3/base.py. La función utiliza pickle.load() para deserializar multi_embed_store.pkl de un persist_dir proporcionado por el usuario sin validación. Un atacante que pueda proporcionar un directorio persist_dir manipulado que contenga un archivo pickle malicioso puede desencadenar la ejecución de código arbitrario cuando la víctima carga el índice desde el disco.

References

https://huntr.com/bounties/ab4ceeb4-aa85-4d1c-aaca-4eda1b71fc12evidence, exploit, technical-description, third-party-advisory
https://www.llamaindex.ai/product, web
https://github.com/run-llama/llama_indexpackage, product, third-party-advisory
https://www.vulncheck.com/advisories/llamaindex-bgem3index-unsafe-deserializationadvisory, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-14021 changed 2026-07-28CVE Terms of Use
NVDCVE-2024-14021 changed 2026-07-14Public domain
PyPA Advisory DatabasePYSEC-2026-85 changed 2026-05-20CC-BY-4.0