CVE-2025-3108
Unsafe Deserialization in JsonPickleSerializer Enables Remote Code Execution in run-llama/llama_index
- State
- Published
- Severity
- 5.0 Medium
- Published
- Jul 6, 2025
- Updated
- Jul 7, 2025
- Reserved
- Apr 2, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 5.0 Medium | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L | @huntr_ai |
Weaknesses
- CWE-1112 Incomplete Documentation of Program Execution
Affected Products
| Product | Versions |
|---|---|
run-llama/llama_indexrun-llama |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.