INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2025-1753

LLama-Index CLI OS command injection vulnerability

CVE-2025-1753 ยท 2025-05-28 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
llama-index-cli (PyPI)
CVSS
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% chance of exploitation in 30 days

How it works, in short

The CLI passes its files argument unescaped into os.system, so shell metacharacters in a filename run arbitrary commands. (Our summary, written by a model. The source text is below.)

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.