PyPi: Llama-Index-Core

CVE-2025-3108

Safety vulnerability ID: 77977

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Jul 06, 2025 Updated at Sep 16, 2025
Scan your Python projects for vulnerabilities →

Advisory

Affected versions of the LlamaIndex package are vulnerable to Remote Code Execution (RCE) through insecure deserialization. The `JsonPickleSerializer` class uses Python's `pickle.loads()` function without proper validation, which can execute arbitrary code when processing untrusted data.

The deserialize method attempts to deserialize data by applying `pickle.loads()` on base64-decoded input, allowing attackers to craft malicious payloads that execute arbitrary commands upon deserialization. A remote attacker can exploit this vulnerability by submitting specially crafted serialized objects, resulting in full system compromise.

The vulnerability was partially addressed by renaming the class to `PickleSerializer` and adding a prominent warning in the docstring advising users to only deserialize trusted data. However, the underlying insecure `pickle.loads()` functionality remains unchanged.

Affected package

llama-index-core

Latest version: 0.14.2

Interface between LLMs and your data

Affected versions

Fixed versions

Vulnerability changelog

This vulnerability has no description

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

HIGH 7.5

CVSS v3 Details

HIGH 7.5
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
HIGH
Privileges Required (PR)
NONE
User Interaction (UI)
REQUIRED
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
HIGH
Availability Availability (A)
HIGH