HomeLlamaindexCVE-2024-3271

CVE-2024-3271

CRITICAL
9.8CVSS
Published: 2024-04-16
Updated: 2025-07-30
AI Analysis

Description

A command injection vulnerability exists in the run-llama/llama_index repository, specifically within the safe_eval function. Attackers can bypass the intended security mechanism, which checks for the presence of underscores in code generated by LLM, to execute arbitrary code. This is achieved by crafting input that does not contain an underscore but still results in the execution of OS commands. The vulnerability allows for remote code execution (RCE) on the server hosting the application.

CVSS Metrics

Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
network
Complexity
low
Privileges
none
User Action
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
high
Weaknesses
CWE-77

Metadata

Primary Vendor
LLAMAINDEX
Published
4/16/2024
Last Modified
7/30/2025
Source
NIST NVD
Note: Verify all details with official vendor sources before applying patches.

Affected Products

llamaindex : llamaindex

AI-Powered Remediation

Generate remediation guidance or a C-suite brief for this vulnerability.

Executive Intelligence Brief

CVE-CVE-2024-3271 | CRITICAL Severity | CVEDatabase.com | CVEDatabase.com