CVE-2025-3108
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.
How to fix
- llamaindex llamaindex0.12.41 or later
- llama-index-core0.12.41 or later
- llama-index0.12.41 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| llamaindex llamaindex | 0.12.27 ≤ v < 0.12.41 | 0.12.41 |
| llama-index-corePyPI | 0.11.15 ≤ v < 0.12.41 | 0.12.41 |
| llama-indexPyPI | 0.12.27 ≤ v < 0.12.41 | 0.12.41 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.