Skip to main content
VulnerabilityPublished

CVE-2025-3108: run-llama/llama_index · Incomplete Documentation of Program Execution

Affects run-llama/llama_indexSource CVE Database V5

0

Not known to be exploited · CVSS 5.0 Medium.

Data as of 26 Oct 2026, 12:55 UTC

CVSS 3.0 base score
5.0Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
run-llama run-llama/llama_indexAffected
  • >=0.12.27 <=0.12.40
Fixed in–

AI-suggested

  1. Immediate mitigation involves auditing all use cases of the run-llama/llama_index library, particularly where JsonPickleSerializer is employed for deserialization.
  2. Avoid deserializing untrusted or unauthenticated data using this component.
  3. Implement strict input validation and sandboxing around deserialization processes to limit potential damage.
  4. Where possible, replace or configure JsonPickleSerializer to use safer serialization formats that do not rely on pickle, such as JSON without fallback to pickle.
  5. Monitor for unusual application behavior or unexpected code execution patterns that could indicate exploitation attempts.
  6. Engage with the vendor or open-source maintainers to obtain patches or updates addressing this vulnerability as soon as they become available.
  7. Employ network-level controls to restrict inbound traffic to services using the vulnerable library, reducing exposure to remote attacks.
  8. Educate developers and security teams about the risks of insecure deserialization and enforce secure coding practices.
  9. Consider application-layer firewalls or runtime application self-protection (RASP) solutions to detect and block malicious payloads targeting deserialization flaws.

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.

References

Community reviews

Loading reviews…