{"id":"CVE-2024-3271","published":"2024-04-16T00:00:15Z","modified":"2024-08-01T20:05:08Z","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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02886,"percentile":0.87213,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://huntr.com/bounties/9b32490e-7cf9-470e-8d49-ba083ae7a279","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/5fbcb5a8b9f20f81b791c7fc8849e352613ab475","tags":[]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":17.44},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 10.26"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-05-13T19:12:23.200432Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-core","vulnerableRanges":["<0.10.24"],"patched":["0.10.24"],"from":["GHSA-r6gp-rff2-p3hf","PYSEC-2026-396"],"provenance":"source"}],"summary":{"text":"A command injection flaw exists in the safe_eval function of the run-llama/llama_index repository, which is used to evaluate code generated by an LLM.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:03:02Z"},"euvd":{"id":"EUVD-2024-1292","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-3098","published":"2024-04-10","fixed":"0.10.24","kev":false},{"cve":"CVE-2024-3271","published":"2024-04-16","fixed":"0.10.24","kev":false},{"cve":"CVE-2024-45201","published":"2024-08-22","fixed":"0.10.38","kev":false,"link":{"from":"CVE-2024-3271","to":"CVE-2024-45201","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-core","fromFixed":"0.10.24","toFixed":"0.10.38","daysApart":128}]}},{"cve":"CVE-2024-12704","published":"2025-03-20","fixed":"0.12.6","kev":false},{"cve":"CVE-2025-5302","published":"2025-08-25","fixed":"0.12.38","kev":false}],"package":"PyPI:llama-index-core"}}