Vulnerability · Published Jul 6, 2025 · Assigned by @huntr_ai

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

Medium 5.0

In plain English

A medium-severity security flaw in run-llama/llama_index from run-llama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.0Medium
Exploit odds (30 days)0.5%top 56.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIllama-index0.12.41PYSEC-2025-249
PyPIllama-index-core0.12.41GHSA-m84c-4c34-28gf
PyPIllama-index-core0.12.41PYSEC-2026-1564

Affected products (as reported)

VendorProductVersions
run-llama run-llama/llama_index unspecified – before v0.12.41

Weakness: CWE-1112 · Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

References