Run-llama run-llama/llama_index
Unsafe Deserialization in JsonPickleSerializer Enables Remote Code Execution in run-llama/llama_index
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= unspecified, < v0.12.41
Fixed in v0.12.41
Mitigation
Upgrade run-llama/llama_index to v0.12.41 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| kasturixbm5/Automate-this-shi | 7 Jul 2025 +18 h | 0 | Pending · listed by PoC Index; via PoC Index |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.