CVE-2024-3271
Critical 9.8No known exploitationFix availableCommand Injection in run-llama/llama_index
Vendor advisory: GHSA-r6gp-rff2-p3hf
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
Description
A command injection vulnerability exists in the run-llama/llama_index repository, specifically within the safe_eval function. Attackers can bypass the intended security mechanism, which checks for the presence of underscores in code generated by LLM, to execute arbitrary code. This is achieved by crafting input that does not contain an underscore but still results in the execution of OS commands. The vulnerability allows for remote code execution (RCE) on the server hosting the application.
Weakness: CWE-77
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| pip | llama-index-core | all versions before 0.10.24 | 0.10.24 | GitHub Advisory Database |
| run-llama | run-llama/llama_index | all versions before 10.26 | 10.26 | CVE Program |
Timeline
Disclosure
CVE record published by @huntr_ai
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database