PyPi: Llama-Index-Core

CVE-2024-3271

Safety vulnerability ID: 71792

This vulnerability was reviewed by experts

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

Created at Apr 16, 2024 Updated at Sep 22, 2025
Scan your Python projects for vulnerabilities →

Advisory

Affected versions of the llama_index package are vulnerable to Command Injection due to insufficient validation in the safe_eval function within the exec_utils.py module. The safe_eval function's DunderVisitor class only checks for underscores in identifiers whilst permitting dangerous builtins like getattr and hasattr, which can be exploited to access restricted functionality and execute operating system commands.

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

CRITICAL 9.8

CVSS v3 Details

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