# CVE-2024-4181: Command Injection in run-llama/llama_index

- Severity: High 8.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.14%, higher than 82% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-16T09:03:47.278Z
- Modified: 2026-07-13T07:26:21.243Z
- Also known as: GHSA-pw38-xv9x-h8ch, PYSEC-2024-324, PYSEC-2026-1565
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- run-llama run-llama/llama_index: from unspecified before 0.10.13
- run-llama llama_index: 0.9.47
- llama-index (PyPI): before 0.10.13; from 0.9.47 before 0.10.13
- llama-index-llms-rungpt (PyPI): before 0.1.3
- llamaindex llamaindex: from 0.9.47 before 0.10.13

## Every score

- @huntr_ai: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/1a204520-598a-434e-b13d-0d34f2a5ddc1> (exploit, evidence, third-party-advisory, web)
- <https://github.com/run-llama/llama_index/commit/d73715eaf0642705583e7897c78b9c8dd2d3a7ba> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4181> (advisory)
- <https://github.com/run-llama/llama_index> (package)
- <https://pypi.org/project/llama-index-llms-rungpt> (package)
- <https://github.com/advisories/GHSA-pw38-xv9x-h8ch> (advisory)

## Sources

- CVE List: [CVE-2024-4181](https://www.cve.org/CVERecord?id=CVE-2024-4181), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-pw38-xv9x-h8ch](https://github.com/advisories/GHSA-pw38-xv9x-h8ch), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2024-4181](https://nvd.nist.gov/vuln/detail/CVE-2024-4181), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-324](https://osv.dev/vulnerability/PYSEC-2024-324), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-1565](https://osv.dev/vulnerability/PYSEC-2026-1565), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2024-4181 · Whole record: https://cve.day/CVE-2024-4181.json · Rebuilt by cve.day 2026-11-25T22:58:40.433Z
