Lucene search

K
vulnrichment@huntr_aiVULNRICHMENT:CVE-2024-3098
HistoryApr 10, 2024 - 5:07 p.m.

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

2024-04-1017:07:56
CWE-94
@huntr_ai
github.com
6
vulnerability
exec_utils class
llama_index
prompt injection
arbitrary code execution
safe_eval function
method restrictions
unauthorized code
cve-2024-3098
proof of concept

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

7.8

Confidence

Low

EPSS

0.004

Percentile

75.5%

SSVC

Exploitation

poc

Automatable

yes

Technical Impact

total

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.

ADP Affected

[
  {
    "cpes": [
      "cpe:2.3:a:run-llama:llama_index:*:*:*:*:*:*:*:*"
    ],
    "vendor": "run-llama",
    "product": "llama_index",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "0.10.24",
        "versionType": "custom"
      }
    ],
    "defaultStatus": "unknown"
  }
]

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

7.8

Confidence

Low

EPSS

0.004

Percentile

75.5%

SSVC

Exploitation

poc

Automatable

yes

Technical Impact

total

Related for VULNRICHMENT:CVE-2024-3098