CVE-2024-3271 CRITICAL

CVE-2024-3271: Command Injection in run-llama/llama_index

Vendor Run-Llama
Product run-llama/llama_index
Weakness CWE-77
Published April 16, 2024
Last update August 1, 2024

CVSS base score

9.8/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 16, 2024 CVE published
August 1, 2024 Record updated