{"id":"CVE-2024-45201","kind":"vulnerability","aliases":["CVE-2024-45201","GHSA-fxc2-8m62-m85x"],"related":[],"title":"LlamaIndex includes an exec call for `import {cls_name}`","description":"An issue was discovered in llama_index before 0.10.38. `download/integration.py` includes an exec call for `import {cls_name}`.","summary":"LlamaIndex's integration download code passes a class name into an exec call, so a crafted name becomes Python code that runs. An attacker who can influence that name gets code execution in the process running LlamaIndex.","severity":"critical","cvss":9.8,"epss":0.00533,"exploited":false,"exploited_at":null,"products":[{"name":"llama-index-core","fixed":["0.10.38"],"affected":"< 0.10.38","ecosystem":"pypi"},{"name":"llamaindex","fixed":["0.10.38"],"affected":"< 0.10.38","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["ai-tooling","cwe-94","llama-index-core","llamaindex","python"],"not_affected_if":["version-0.10.38-or-later"],"how_to_check":"- Run `pip show llama-index-core` and compare the version with `0.10.38`\n- Search your environment for `llama-index-core` pinned below `0.10.38` in requirements or lock files","fix":"- `llama-index-core` to `0.10.38` or later","status":"open","published_at":"2024-08-22T20:15:10+00:00","first_seen_at":"2026-11-16T15:17:21+00:00","triaged_at":"2026-11-16T15:19:19+00:00","updated_at":"2026-11-16T15:37:59+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T15:19:19Z","model":"claude-haiku-5-5","output":{"fix":"- `llama-index-core` to `0.10.38` or later","reach":"unknown","title":"LlamaIndex: a crafted class name lets attackers run code on the server","impact":"high","summary":"LlamaIndex's integration download code passes a class name into an exec call, so a crafted name becomes Python code that runs. An attacker who can influence that name gets code execution in the process running LlamaIndex.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["python","llamaindex","llama-index-core"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"code runs in the LlamaIndex process on the server","analyst_note":"","how_to_check":"- Run `pip show llama-index-core` and compare the version with `0.10.38`\n- Search your environment for `llama-index-core` pinned below `0.10.38` in requirements or lock files","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-0.10.38-or-later"],"who_is_affected":"Applications that import the LlamaIndex integration download code (download/integration.py) with an affected llama-index-core version. The sources do not say which input reaches the class name, so whether a given app is reachable is unknown; teams that never load LlamaIndex integrations at runtime are less exposed.","user_interaction":"unknown","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000706,"input_tokens":4578,"output_tokens":497,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2024':11A,19A '-45201':12A,20A '-94':30B '0.10.38':82C '8m62':16A 'ai':27B 'ai-tool':26B 'attack':60B 'becom':54B 'call':5A,49B,87C 'class':44B 'cls':8A,90C 'code':41B,56B,67B 'core':24A,34B 'craft':52B 'cve':10A,18A 'cwe':29B 'discov':77C 'download':40B 'download/integration.py':83C 'exec':4A,48B,86C 'execut':68B 'fxc2':15A 'get':66B 'ghsa':14A 'ghsa-fxc2-8m62-m85x':13A 'import':7A,89C 'includ':2A,84C 'index':23A,33B,80C 'influenc':63B 'integr':39B 'issu':75C 'llama':22A,32B,79C 'llama-index-cor':31B 'llama-index-core':21A 'llamaindex':1A,25A,35B,37B,73B 'm85x':17A 'name':9A,45B,53B,65B,91C 'pass':42B 'process':71B 'python':36B,55B 'run':58B,72B 'tool':28B","nicknames":[],"mitigations":[],"who_affected":"Applications that import the LlamaIndex integration download code (download/integration.py) with an affected llama-index-core version. The sources do not say which input reaches the class name, so whether a given app is reachable is unknown; teams that never load LlamaIndex integrations at runtime are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["llamaindex","llamaindexcore"],"ptokens":["core","index","llama","llamaindex"],"labels":["aitooling","critical","cwe94","llamaindex","llamaindexcore","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2024':11A,19A '-45201':12A,20A '8m62':16A 'call':5A 'cls':8A 'core':24A 'cve':10A,18A 'exec':4A 'fxc2':15A 'ghsa':14A 'ghsa-fxc2-8m62-m85x':13A 'import':7A 'includ':2A 'index':23A 'llama':22A 'llama-index-core':21A 'llamaindex':1A,25A 'm85x':17A 'name':9A","search_b":"'-94':30B 'ai':27B 'ai-tool':26B 'attack':60B 'becom':54B 'call':49B 'class':44B 'code':41B,56B,67B 'core':34B 'craft':52B 'cwe':29B 'download':40B 'exec':48B 'execut':68B 'get':66B 'index':33B 'influenc':63B 'integr':39B 'llama':32B 'llama-index-cor':31B 'llamaindex':35B,37B,73B 'name':45B,53B,65B 'pass':42B 'process':71B 'python':36B,55B 'run':58B,72B 'tool':28B","search_c":"'0.10.38':82C 'call':87C 'cls':90C 'discov':77C 'download/integration.py':83C 'exec':86C 'import':89C 'includ':84C 'index':80C 'issu':75C 'llama':79C 'name':91C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2024-08-22T20:15:10+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-fxc2-8m62-m85x","url":"https://github.com/advisories/GHSA-fxc2-8m62-m85x","severity":"critical","published_at":"2024-08-22T21:31:29+00:00","modified_at":"2026-11-16T15:16:02+00:00","first_seen_at":"2026-11-16T15:17:21+00:00","fetched_at":"2026-11-16T15:26:32+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-45201","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45201","severity":null,"published_at":"2024-08-22T20:15:10+00:00","modified_at":"2026-06-17T07:53:47+00:00","first_seen_at":"2026-11-16T15:37:59+00:00","fetched_at":"2026-11-16T15:37:59+00:00","note":null}],"documents":[{"id":170361,"url":"https://github.com/run-llama/llama_index/commit/bd827c30484fa085ec769fa55dc7f2add8006ac8","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170359,"url":"https://github.com/run-llama/llama_index/pull/13523","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170360,"url":"https://github.com/run-llama/llama_index/compare/v0.10.37...v0.10.38","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00533,"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-45201"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}