Skip to content
OpenAdvisories
Medium · 5.0 CVE-2025-3108 EUVD-2025-20156GHSA-m84c-4c34-28gfPYSEC-2025-249PYSEC-2026-1564

Unsafe Deserialization in JsonPickleSerializer Enables Remote Code Execution in run-llama/llama_index

Published Jul 6, 2025 · Updated Jul 7, 2025 · Assigned by @huntr_ai

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.

Affected products

VendorProductAffectedFixed
run-llama run-llama/llama_index unspecified – < v0.12.41 v0.12.41

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI llama-index >= 0.12.27, < 0.12.41 0.12.41 PYSEC-2025-249
PyPI llama-index-core >= 0.11.15, < 0.12.41 0.12.41 GHSA-m84c-4c34-28gf

References