CVE-2024-4181Llamaindex
High 8.8 No auth needed
Follow: this CVE · Llamaindex · Llamaindex We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.0
- 8.8
- EPSS
- 3.3% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- May 16, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
A command injection vulnerability exists in the RunGptLLM class of the llama_index library, version 0.9.47, used by the RunGpt framework from JinaAI to connect to Language Learning Models (LLMs). The vulnerability arises from the improper use of the eval function, allowing a malicious or compromised LLM hosting provider to execute arbitrary commands on the client's machine. This issue was fixed in version 0.10.13. The exploitation of this vulnerability could lead to a hosting provider gaining full control over client machines.
What to do
- Apply the vendor's security update for Llamaindex.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | llama-index |
< 0.10.13 |
0.10.13 |
pip install "llama-index>=0.10.13" |
| PyPI | llama-index |
≥ 0.9.47 < 0.10.13 |
0.10.13 |
pip install "llama-index>=0.10.13" |
| PyPI | llama-index-llms-rungpt |
< 0.1.3 |
0.1.3 |
pip install "llama-index-llms-rungpt>=0.1.3" |
| PyPI | llama-index-llms-rungpt |
< 0.1.3 |
0.1.3 |
pip install "llama-index-llms-rungpt>=0.1.3" |
Per OSV / GitHub Advisories (GHSA-pw38-xv9x-h8ch, PYSEC-2024-324, PYSEC-2026-1565). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| llamaindex | llamaindex | ≥ 0.9.47 < 0.10.13 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory