Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-3098— Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index

Quick assessment

Affected
run-llama run-llama/llama_index
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LlamaIndex是Jerry Liu个人开发者的一个 LLM 应用程序的数据框架。 LlamaIndex存在代码注入漏洞,该漏洞源于 exec_utils 中的 safe_eval 函数输入验证不足,允许通过提示注入,导致任意代码执行。

AI Predicted 8.4 Difficulty: Easy EPSS 0.95% · P58
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-3098

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index
Source: CVE Program / CVE List V5
Vulnerability Description
A vulnerability was identified in the `exec_utils` class of the `llama_index` package, specifically within the `safe_eval` function, allowing for prompt injection leading to arbitrary code execution. This issue arises due to insufficient validation of input, which can be exploited to bypass method restrictions and execute unauthorized code. The vulnerability is a bypass of the previously addressed CVE-2023-39662, demonstrated through a proof of concept that creates a file on the system by exploiting the flaw.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
LlamaIndex 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LlamaIndex是Jerry Liu个人开发者的一个 LLM 应用程序的数据框架。 LlamaIndex存在代码注入漏洞,该漏洞源于 exec_utils 中的 safe_eval 函数输入验证不足,允许通过提示注入,导致任意代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
run-llama run-llama/llama_index unspecified ~ 0.10.24 -

II. Public POCs for CVE-2024-3098

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-3098

登录查看更多情报信息。

Patches & Fixes for CVE-2024-3098 (1)

Vendor Advisories for CVE-2024-3098 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-3098

No comments yet


Leave a comment