Advisory

PYSEC-2026-396

Also known as: CVE-2024-3271, GHSA-r6gp-rff2-p3hf

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: CVSS v3 score 9.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:22 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: PyPA Advisory Database · CC BY 4.0

Sources & licences