{"id":"CVE-2024-4181","published":"2024-05-16T09:03:47Z","modified":"2024-08-01T20:33:52Z","title":"Command Injection in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02135,"percentile":0.8245,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://huntr.com/bounties/1a204520-598a-434e-b13d-0d34f2a5ddc1","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/d73715eaf0642705583e7897c78b9c8dd2d3a7ba","tags":[]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":16.49},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.10.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-05-16T16:10:22.479833Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index","vulnerableRanges":["<0.10.13",">=0.9.47, <0.10.13"],"patched":["0.10.13"],"from":["GHSA-pw38-xv9x-h8ch","PYSEC-2024-324"],"provenance":"source"},{"ecosystem":"PyPI","package":"llama-index-llms-rungpt","vulnerableRanges":["<0.1.3"],"patched":["0.1.3"],"from":["GHSA-pw38-xv9x-h8ch","PYSEC-2026-1565"],"provenance":"source"}],"summary":{"text":"The RunGptLLM class in the llama_index library (run-llama/llama_index), as used by the RunGpt framework from JinaAI to connect to large language models, improperly uses the eval function, producing a code injection flaw in version 0.9.47. An attacker who controls or compromises the LLM hosting provider can, through a victim's interaction with that provider's responses, execute arbitrary commands on the client's machine, potentially giving the provider full control over client systems.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:43Z"},"euvd":{"id":"EUVD-2024-1728","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-6210","published":"2025-07-07","fixed":"0.5.2","kev":false},{"cve":"CVE-2023-39662","published":"2023-08-15","fixed":"0.9.14","kev":false},{"cve":"CVE-2024-23751","published":"2024-01-22","fixed":"0.9.35","kev":false},{"cve":"CVE-2024-4181","published":"2024-05-16","fixed":"0.10.13","kev":false},{"cve":"CVE-2024-45201","published":"2024-08-22","fixed":"0.10.38","kev":false,"link":{"from":"CVE-2024-4181","to":"CVE-2024-45201","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index","fromFixed":"0.10.13","toFixed":"0.10.38","daysApart":98}]}},{"cve":"CVE-2024-14021","published":"2026-01-12","fixed":"0.11.7","kev":false},{"cve":"CVE-2024-12911","published":"2025-03-20","fixed":"0.12.3","kev":false}],"package":"PyPI:llama-index"}}