CVE-2025-3108

High

Description

A critical deserialization vulnerability exists in the run-llama/llama_index library's JsonPickleSerializer component, affecting versions v0.12.27 through v0.12.40. This vulnerability allows remote code execution due to an insecure fallback to Python's pickle module. JsonPickleSerializer prioritizes deserialization using pickle.loads(), which can execute arbitrary code when processing untrusted data. Attackers can exploit this by crafting malicious payloads to achieve full system compromise. The root cause includes an insecure fallback mechanism, lack of validation or safeguards, misleading design, and violation of Python security guidelines.

SeverityHigh
CVSS7.5
Exploit probability—
ProductLlamaindex
PublishedJul 6, 2025
First seenJul 6, 2025
Weakness typeCWE-1112CWE-1112

How to fix

Update
  • llamaindex llamaindex0.12.41 or later
  • llama-index-core0.12.41 or later
  • llama-index0.12.41 or later

Affected products

ProductAffected versionsFixed in
llamaindex llamaindex0.12.27 ≤ v < 0.12.410.12.41
llama-index-corePyPI0.11.15 ≤ v < 0.12.410.12.41
llama-indexPyPI0.12.27 ≤ v < 0.12.410.12.41

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-3108 · Llamaindex · Dark Radar