Unsafe Deserialization in JsonPickleSerializer Enables Remote Code Execution in run-llama/llama_index
run-llama/llama_index
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| llama-index-core PyPI |
|
|
| llama-index PyPI |
|
|
run-llama/llama_index
| Product | Affected | Fixed in |
|---|---|---|
| llama-index-core PyPI |
|
|
| llama-index PyPI |
|
|
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.
From the CVE record · @huntr_ai
JsonPickleSerializer can deserialize untrusted data using Python's pickle.loads(), which can execute arbitrary code. A remote attacker can exploit this by supplying a malicious payload for the component to deserialize; the input does not specify whether authentication or user interaction is required.
Check installations of PyPI llama-index-core versions >=0.11.15 and <0.12.41, and PyPI llama-index versions >=0.12.27 and <0.12.41.