CVE-2024-14021CWE-502

LlamaIndex <= 0.11.6 BGEM3Index Unsafe Deserialization

High · published January 12, 2026

CVSS v4.0
8.4
EPSS
0%
Percentile
25.9
In the wild
Unconfirmed
What it is

⚡ Security alert! LlamaIndex versions up to 0.11.6 are vulnerable to a sneaky deserialization exploit that could allow attackers to execute arbitrary code. 🔥 Think of it as a library that accepts books without checking their contents. If someone sneaks in a book filled with harmful ideas, the whole library is at risk the moment someone opens it up! An attacker could craft a malicious pickle file and place it in a user-supplied directory. When the victim loads the index, they unwittingly execute the attacker's code, potentially leading to complete system compromise or data loss. This could be absolutely devastating!

Put simply

Think of it as a library that accepts books without checking their contents. If someone sneaks in a book filled with harmful ideas, the whole library is at risk the moment someone opens it up! The vulnerability in LlamaIndex arises from the use of `pickle.load()` in the `BGEM3Index.load_from_disk()` function, which deserializes data from an unvalidated user-provided directory. This opens the door for malicious payloads to run without any checks.

What to do

An attacker could craft a malicious pickle file and place it in a user-supplied directory. When the victim loads the index, they unwittingly execute the attacker's code, potentially leading to complete system compromise or data loss. This could be absolutely devastating! To safeguard against this vulnerability, upgrade to LlamaIndex version 0.11.7 or later immediately. Additionally, avoid deserializing untrusted data and consider using safer serialization methods. Regularly audit your code for potential deserialization vulnerabilities. You’ve got this! With these steps, you’ll be a security hero, locking down the vulnerabilities in no time! 🛡️

The record
Technical detail
CVSS v4.0
8.4 · HIGH
Vector
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
EPSS
0.00337 · 25.9th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2026-01-12T23:04Z
EPSS history
Timeline
  • 12 JAN 23:04Z
    LlamaIndex <= 0.11.6 BGEM3Index Unsafe Deserialization
    cvelistv5