CVE-2025-1753

Command Injection in LLama-Index CLI in run-llama/llama_index

Published May 28, 2025 CVSS 3.1 · 7.8 High EPSS 1.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-16322 LLama-Index CLI OS command injection vulnerability
Github GHSA Github GHSA GHSA-g99h-56mw-8263 LLama-Index CLI OS command injection vulnerability
History
Type Values Removed Values Added
First Time appeared Llamaindex
Llamaindex llamaindex
CPEs cpe:2.3:a:llamaindex:llamaindex:0.12.20:*:*:*:*:*:*:*
Vendors & Products Llamaindex
Llamaindex llamaindex
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Command Injection in LLama-Index CLI in run-llama/llama_index
Weaknesses CWE-78
References
Metrics cvssV3_0

{'score': 7.8, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
May 28, 2025, 1:25 PM
Reserved
Feb 27, 2025, 11:29 AM
Status
Analyzed
Published
May 28, 2025, 10:15 AM
Modified
Jun 17, 2026, 8:39 AM
Severity
Important
Public date
May 28, 2025, 9:34 AM