Local command execution via unquoted files path
Published May 28, 2025 · Updated May 28, 2025
OS command injection in LlamaIndex CLI before 0.4.1 allows local users to execute arbitrary commands through a crafted --files path. The handle_cli routine in llama_index/cli/rag/base.py concatenates that path into a command string and passes it to os.system without shell quoting. Exploitation requires control of CLI arguments, or an application that forwards a user-controlled filename, and runs commands with the hosting process's privileges.
Summary
What happened
OS command injection in LlamaIndex CLI before 0.4.1 allows local users to execute arbitrary commands through a crafted --files path. The handle_cli routine in llama_index/cli/rag/base.py concatenates that path into a command string and passes it to os.system without shell quoting. Exploitation requires control of CLI arguments, or an application that forwards a user-controlled filename, and runs commands with the hosting process's privileges.
The record
- CVE
- CVE-2025-1753
- Published
- May 28, 2025
- Updated
- May 28, 2025
- Vendor
- LlamaIndex
- Product
- LlamaIndex
- Classifications
- CWE-78, T1059
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 28, 2025CVE publishedPublication date reported by the CVE source.
- May 28, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <0.4.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Huntr --files command-injection proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo