# CVE-2024-14021: LlamaIndex <= 0.11.6 BGEM3Index Unsafe Deserialization

- Severity: High 8.4 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-12T23:04:43.095Z
- Modified: 2026-07-28T01:47:42.445Z
- Also known as: PYSEC-2026-85
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- run-llama llama_index: up to 0.11.6
- llamaindex llamaindex: up to 0.11.6
- llama-index (PyPI): before 0.11.7

## Every score

- VulnCheck: CVSS:4.0 8.4 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/ab4ceeb4-aa85-4d1c-aaca-4eda1b71fc12> (exploit, evidence, technical-description, third-party-advisory)
- <https://www.llamaindex.ai/> (product, web)
- <https://github.com/run-llama/llama_index> (package, product, third-party-advisory)
- <https://www.vulncheck.com/advisories/llamaindex-bgem3index-unsafe-deserialization> (advisory, third-party-advisory)

## Sources

- CVE List: [CVE-2024-14021](https://www.cve.org/CVERecord?id=CVE-2024-14021), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2024-14021](https://nvd.nist.gov/vuln/detail/CVE-2024-14021), Public domain, modified 2026-07-14
- PyPA Advisory Database: [PYSEC-2026-85](https://osv.dev/vulnerability/PYSEC-2026-85), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2024-14021 · Whole record: https://cve.day/CVE-2024-14021.json · Rebuilt by cve.day 2026-11-25T22:58:52.959Z
