CVE-2024-3271

Source
https://cve.org/CVERecord?id=CVE-2024-3271
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3271.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-3271
Aliases
Published
2024-04-16T00:15:12.017Z
Modified
2026-03-14T12:28:46.283144Z
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
[none]
Details

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.

References

Affected packages

Git / github.com/run-llama/llama_index

Affected ranges

Type
GIT
Repo
https://github.com/run-llama/llama_index
Events
Database specific
{
    "versions": [
        {
            "introduced": "0.10.6"
        },
        {
            "fixed": "0.10.26"
        }
    ]
}

Affected versions

v0.*
v0.10.10
v0.10.11
v0.10.12
v0.10.13
v0.10.13.post1
v0.10.14
v0.10.15
v0.10.16
v0.10.17
v0.10.18
v0.10.19
v0.10.20
v0.10.22
v0.10.23
v0.10.24
v0.10.25
v0.10.6
v0.10.7
v0.10.8
v0.10.9

Database specific

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