CVE-2025-1753
HIGH 7.8CVSS 3.0LLama-Index CLI OS command injection vulnerability
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.
- Published
- 28 May 2025
- Last modified
- 13 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-g99h-56mw-8263PYSEC-2025-246PYSEC-2026-1557
- Sources
- NVDJSONOSV GHSA-g99h-56mw-8263JSONOSV PYSEC-2025-246JSONOSV PYSEC-2026-1557JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | llamaindex | llamaindexcpe:2.3:a:llamaindex:llamaindex:0.12.20:*:*:*:*:*:*:* |
= 0.12.20 | |
| OSV | PyPI | llama-index-cli | < 0.4.1 | 0.4.1 |
| OSV | PyPI | llama-index | <= 0.12.20 |
References
- https://github.com/run-llama/llama_index/commit/b57e76738c53ca82d88658b82f2d82d1c7839c7d · Patch, WEB, FIX
- https://huntr.com/bounties/19e1c67e-1d77-451d-b10b-acbe99900b22 · Exploit, Third Party Advisory, WEB, EVIDENCE
- 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
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 28 May 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 May 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 May 2025)