CVE-2024-45201: LlamaIndex includes an exec call for `import {cls_name}`
llama-index-core before 0.10.38 builds an `import {cls_name}` statement and runs it with exec in download/integration.py. If an attacker controls the class name, they can inject Python code. Upgrade to llama-index-core 0.10.38, where pull request 13523 removes the exec call.
Published Aug 22, 2024 · Updated Jan 21, 2025 · Analysis Nov 1, 2026
What an attacker can do
The download_integration helper in download/integration.py formats a class name into an import statement and passes the string to Python exec (CWE-94). Any value in that string that is not a plain class name can carry extra statements, and they run with the privileges of the calling process.
The sources are thin: the advisory is a single sentence, and the pull request page has no description or visible diff. I cannot say which public entry points pass outside input into the class name. The CVSS vector assumes network reach, no privileges and no interaction, which would apply where an app lets users or model output choose which integration to download.
The realistic exposure is an app, agent or notebook that calls the download helper with a name derived from user input, a config file or an LLM tool call. Code would run with that process's access to files, environment variables and API keys. An app that only hardcodes integration names is not exposed through this path.
Who is affected
The pip package llama-index-core (the NVD text says llama_index), versions below 0.10.38. Check your version:
pip show llama-index-coreThen search your code for download_integration and see whether any argument comes from outside your code.
llama-index-core
- Ecosystem
- PyPI
- Affected
- < 0.10.38
- Fixed in
- 0.10.38
- Check
pip show llama-index-core
How to fix it
Upgrade to llama-index-core 0.10.38 or later.
pip install --upgrade "llama-index-core>=0.10.38"The fix is pull request 13523, titled "remove exec from download_integration" (commit bd827c30484fa085ec769fa55dc7f2add8006ac8). The sources name no workaround. Until you upgrade, do not pass untrusted values to the download helper.
How to tell if you were hit
Search your code and agent tool definitions for download_integration and note which arguments are not constants. Check logs for unusual class-name arguments containing ;, __import__, os. or newlines. Look for child processes started from the Python process that runs the download.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
An issue was discovered in llama_index before 0.10.38. download/integration.py includes an exec call for import {cls_name}.
Questions
- Which version fixes CVE-2024-45201?
llama-index-core 0.10.38. Versions below it are listed as vulnerable.
- Is the flaw reachable remotely?
Only if an attacker can influence the class name passed to the download helper. The sources do not say which entry points allow that, so check your own call sites.
- Is it exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More LlamaIndex vulnerabilities
All LlamaIndex entriesCVE-2025-6208
llama-index-core vulnerable to Uncontrolled Resource Consumption
medium5.3Feb 2, 2026CVE-2025-7707
llama-index has Insecure Temporary File
high7.1Oct 13, 2025CVE-2025-7647
llama-index-core insecurely handles temporary files
high7.3Sep 27, 2025CVE-2025-5302
LlamaIndex affected by a Denial of Service (DOS) in JSONReader
high8.6Aug 26, 2025CVE-2025-6211
LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class
medium6.5Jul 10, 2025CVE-2025-3108
LlamaIndex has Incomplete Documentation of Program Execution related to JsonPickleSerializer component
medium5.0Jul 7, 2025
