CVE-2025-3108: 
Python vulnerability analysis and mitigation

Overview

A critical deserialization vulnerability (CVE-2025-3108) was discovered in the run-llama/llama_index library's JsonPickleSerializer component, affecting versions v0.12.27 through v0.12.40. The vulnerability was disclosed on July 6, 2025, and involves an insecure fallback to Python's pickle module during deserialization operations (NVD, Miggo).

Technical details

The vulnerability exists in the JsonPickleSerializer component's deserialize method, which attempts to deserialize data by first trying pickle.loads() after base64 decoding. The component prioritizes deserialization using pickle.loads(), which can execute arbitrary code when processing untrusted data. The CVSS v3.0 base score is 5.0 (Medium) with the vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L (NVD, Miggo).

Impact

The vulnerability allows remote code execution due to the insecure fallback mechanism. Attackers can exploit this by crafting malicious payloads to achieve full system compromise. The vulnerability affects confidentiality, integrity, and availability of the system, each with a low impact rating according to the CVSS score (NVD).

Exploitability

The vulnerability requires network access and user interaction for exploitation. While the attack complexity is rated as high, no special privileges are required to execute the attack. The vulnerability has been assigned CWE-1112 (Incomplete Documentation of Program Execution) (NVD, Miggo).

Mitigation and workarounds

Version 0.12.41 addresses this vulnerability by renaming JsonPickleSerializer to PickleSerializer and adding a warning in the documentation to only use PickleSerializer to deserialize safe data. The patch includes explicit warnings in the docstring about potential security risks when deserializing untrusted data (GitHub Commit).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61732CRITICAL10
  • Python logoPython
  • decepticon-core
NoYesSep 24, 2026
GHSA-62mm-xwmv-crhgHIGH8.7
  • Python logoPython
  • khoj
NoYesSep 25, 2026
CVE-2026-57443HIGH7.5
  • Python logoPython
  • scbe-aethermoore
NoYesSep 25, 2026
GHSA-g28h-2cmm-rj9xHIGH7.5
  • Python logoPython
  • langchain-nvidia-ai-endpoints
NoYesSep 24, 2026
CVE-2026-57179MEDIUM4.2
  • Python logoPython
  • python3.10
NoYesSep 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management