Advisory

GHSA-r6gp-rff2-p3hf

Also known as: CVE-2024-3271, PYSEC-2026-396

Summary

llama-index-core Command Injection vulnerability

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-04-16 00:30 UTC
Modified
2026-11-16 15:30 UTC

Affected packages and fixes

llama-index-core

PyPI · All systems

Affected

  • introduced 0, fixed 0.10.24 (ecosystem)

Fixed versions

0.10.24

Fix

  • Fixed version 0.10.24
    pip install --upgrade llama-index-core==0.10.24

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences