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:00:15Z
Modified
2026-08-12T03:51:41Z
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
Command Injection in run-llama/llama_index
Details

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

Database specific
{
    "cna_assigner": "@huntr_ai",
    "cwe_ids": [
        "CWE-77"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3271.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "fixed": "10.26"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ]
}
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
Show details
{
    "cpe": "cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0.10.6"
        },
        {
            "fixed": "0.10.26"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

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"