CVE-2024-4181
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.
Severity
HIGH
CVSS v3
8.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
2.135%
chance of exploitation in the next 30 days
higher than 82.3% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-94: Improper Control of Generation of Code
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2024-05-16 |
Timeline
- 2024-05-16Published by the CNA09:03 UTC
- 2024-05-16GitHub advisory published (GHSA-pw38-xv9x-h8ch)same day
- 2024-05-16CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-pw38-xv9x-h8ch, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI llama-index | before 0.10.13 | 0.10.13 |
| PyPI llama-index-llms-rungpt | before 0.1.3 | 0.1.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| llamaindex llamaindex | from 0.9.47 before 0.10.13fixed in 0.10.13 | 0.10.13 |
References
- https://github.com/run-llama/llama_index/commit/d73715eaf0642705583e7897c78b9c8dd2d3a7ba
- https://huntr.com/bounties/1a204520-598a-434e-b13d-0d34f2a5ddc1
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-4181'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-4181'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-4181'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-4181'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).