Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2024-3098

llama-index-core Prompt Injection vulnerability leading to Arbitrary Code Execution
Back to all
CVE

CVE-2024-3098

llama-index-core Prompt Injection vulnerability leading to Arbitrary Code Execution

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.8
-
3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
9.8
-
3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://nvd.nist.gov/vuln/detail/CVE-2024-3098, https://github.com/run-llama/llamaindex/commit/2c92e88838a5f481d50840240b1dd3180066c6f5, https://github.com/run-llama/llamaindex/commit/5fbcb5a8b9f20f81b791c7fc8849e352613ab475, https://github.com/run-llama/llama_index, https://huntr.com/bounties/1bce0d61-ad03-4b22-bc32-8f99f92974e7, https://pypi.org/project/llama-index-core, https://github.com/advisories/GHSA-wvpx-g427-q9wc

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00951%
EPSS Percentile
0.57307%
Introduced Version
0,0.9.41
Fix Available
0.10.24,0.10.24a1

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading