Skip to main content
← All vulnerabilities
CVE-2025-3108PYSEC-2025-249GHSA-M84C-4C34-28GFPYSEC-2026-1564

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in v0.12.41, 0.12.41
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • run-llama run-llama/llama_index

    fixed in v0.12.41

  • llama-indexPyPI

    From 0.12.27 · fixed in 0.12.41

  • llama-index-corePyPI

    From 0.11.15 · fixed in 0.12.41

References 2

huntr.com

GitHub · run-llama/llama_index