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

- Severity: High 7.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-28T09:34:10.993Z
- Modified: 2026-07-13T07:26:45.696Z
- Also known as: GHSA-g99h-56mw-8263, PYSEC-2025-246, PYSEC-2026-1557
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- run-llama run-llama/llama_index: from unspecified before 0.4.1
- llama-index-cli (PyPI): before 0.4.1
- llamaindex llamaindex: 0.12.20
- llama-index (PyPI): up to 0.12.20

## Every score

- @huntr_ai: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 7.8 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/19e1c67e-1d77-451d-b10b-acbe99900b22> (exploit, evidence, third-party-advisory, web)
- <https://github.com/run-llama/llama_index/commit/b57e76738c53ca82d88658b82f2d82d1c7839c7d> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1753> (advisory)
- <https://github.com/run-llama/llama_index> (package)
- <https://pypi.org/project/llama-index-cli> (package)
- <https://github.com/advisories/GHSA-g99h-56mw-8263> (advisory)

## Sources

- CVE List: [CVE-2025-1753](https://www.cve.org/CVERecord?id=CVE-2025-1753), CVE Terms of Use, modified 2025-05-28
- GitHub Advisory Database: [GHSA-g99h-56mw-8263](https://github.com/advisories/GHSA-g99h-56mw-8263), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2025-1753](https://nvd.nist.gov/vuln/detail/CVE-2025-1753), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-246](https://osv.dev/vulnerability/PYSEC-2025-246), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-1557](https://osv.dev/vulnerability/PYSEC-2026-1557), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-1753 · Whole record: https://cve.day/CVE-2025-1753.json · Rebuilt by cve.day 2026-11-25T22:58:58.535Z
