Advisory

GHSA-g99h-56mw-8263

Also known as: CVE-2025-1753, PYSEC-2025-246, PYSEC-2026-1557

Summary

LLama-Index CLI OS command injection vulnerability

Details

LLama-Index CLI prior to v0.4.1, corresponding to LLama-Index prior to v0.12.21, contains an OS command injection vulnerability. The vulnerability arises from the improper handling of the --files argument, which is directly passed into os.system. An attacker who controls the content of this argument can inject and execute arbitrary shell commands. This vulnerability can be exploited locally if the attacker has control over the CLI arguments, and remotely if a web application calls the LLama-Index CLI with a user-controlled filename. This issue can lead to arbitrary code execution on the affected system.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-05-28 12:30 UTC
Modified
2026-07-13 07:26 UTC

Affected packages and fixes

llama-index-cli

PyPI · All systems

Affected

  • introduced 0, fixed 0.4.1 (ecosystem)

Fixed versions

0.4.1

Fix

  • Fixed version 0.4.1
    pip install --upgrade llama-index-cli==0.4.1

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