Skip to content
Threat Brief

← All advisories

CVE-2024-3271

Critical 9.8No known exploitationFix available

Command Injection in run-llama/llama_index

Vendor advisory: GHSA-r6gp-rff2-p3hf

Record last updated

CVSS score

9.8

Critical on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

None

No EPSS score available

CISA remediation deadline

None

Not in the KEV catalog

Description

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.

Weakness: CWE-77

Patching and mitigation

Patch status
Fix available (source: GitHub Advisory Database)
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
pipllama-index-coreall versions before 0.10.240.10.24GitHub Advisory Database
run-llamarun-llama/llama_indexall versions before 10.2610.26CVE Program

Timeline

  1. Disclosure

    CVE record published by @huntr_ai

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by GitHub Advisory Database

    Source: GitHub Advisory Database (opens in a new tab)

Vendor guidance and references