VDB
Sign up
HIGH7.5

PYSEC-2025-249

Quick fix

PYSEC-2025-249 — llama-index: upgrade to the fixed version with the command below.

pip install --upgrade 'llama-index>=0.12.41'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/llama-index
Introduced in: 0.12.27Fixed in: 0.12.41
Fixpip install --upgrade 'llama-index>=0.12.41'

References