{"cve":"CVE-2024-3271","nvd":{"published":"2024-04-16T00:15:12.017","modified":"2026-06-17T07:43:41.290","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-77"],"references":["https://github.com/run-llama/llama_index/commit/5fbcb5a8b9f20f81b791c7fc8849e352613ab475","https://huntr.com/bounties/9b32490e-7cf9-470e-8d49-ba083ae7a279","https://github.com/run-llama/llama_index/commit/5fbcb5a8b9f20f81b791c7fc8849e352613ab475","https://huntr.com/bounties/9b32490e-7cf9-470e-8d49-ba083ae7a279"],"products":["llamaindex:llamaindex"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-3271","score":0.02886,"percentile":0.86878,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-r6gp-rff2-p3hf","url":"https://osv.dev/vulnerability/GHSA-r6gp-rff2-p3hf","summary":"llama-index-core Command Injection vulnerability","modified":"2026-06-29T12:26:16.587441560Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":["<0.10.24"],"fixed":["0.10.24"]}]},{"id":"PYSEC-2026-396","url":"https://osv.dev/vulnerability/PYSEC-2026-396","summary":"llama-index-core Command Injection vulnerability","modified":"2026-07-01T20:22:56.484978Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":["<0.10.24"],"fixed":["0.10.24"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}