CVE-2024-3098

Source
https://cve.org/CVERecord?id=CVE-2024-3098
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3098.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-3098
Aliases
Published
2024-04-10T17:07:56.501Z
Modified
2026-07-15T01:48:51.169191531Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3098.json",
    "cna_assigner": "@huntr_ai",
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

Git / github.com/run-llama/llama_index

Affected ranges

Type
GIT
Repo
https://github.com/run-llama/llama_index
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.10.24"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3098.json"