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-3271

llama-index-core Command Injection vulnerability
Back to all
CVE

CVE-2024-3271

llama-index-core Command Injection vulnerability

A command injection vulnerability exists in the run-llama/llamaindex repository, specifically within the safeeval 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.

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.0
CVSS:3.0/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-3271, 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/9b32490e-7cf9-470e-8d49-ba083ae7a279, https://pypi.org/project/llama-index-core, https://github.com/advisories/GHSA-r6gp-rff2-p3hf

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.02862%
EPSS Percentile
0.85199%
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