Skip to content
Fencer Vulns
medium 5.0

CVE-2025-3108 json

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

published 2025-07-06 16 mo ago modified 2026-07-13 3 mo ago also GHSA-m84c-4c34-28gf , PYSEC-2025-249 , PYSEC-2026-1564 , EUVD-2025-20156

cvss
5.0
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 43%
public exploits
0
none known

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.

Patch / fix

  • pypi llama-index-core 0.12.41
  • pypi llama-index 0.12.41
  • run-llama run-llama/llama_index v0.12.41

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
16 mo ago

Exploit prediction

0.50% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.com https://huntr.com/bounties/9b55a5e8-74e6-4241-b323-e360dc8b110a referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 5.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV 3.0 5.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
GitHub 3.0 5.0 CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi llama-index-core
>=0.11.15, <0.12.41
0.12.41
pypi llama-index
>=0.12.27, <0.12.41
0.12.41

Affected products

  • run-llama run-llama/llama_index

Classification

Weakness
  • CWE-1112 Incomplete Documentation of Program Execution

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.