{"answers":{"affected":"4 open source packages ship an affected version, including llama-index-core and llama-index. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-45201 in the wild and no public exploit code.","fix":"Upgrade llama-index-core to 0.10.38 or later.","what":"CVE-2024-45201 is a high-severity code injection vulnerability in n/a, published on 22 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-45201 and fix it if it is affected.\n\nWhat it is: CVE-2024-45201 is a high-severity code injection vulnerability in n/a, published on 22 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-45201 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- llama-index-core (PyPI): affected all versions; fixed in 0.10.38\n- llama-index-core (PyPI): affected all versions; fixed in 0.10.38\n- llama-index-core (PyPI): affected all versions; fixed in 0.10.38\n- llama-index (PyPI): affected all versions; fixed in 0.10.38\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45201/ (Markdown: https://insights.sbomify.com/CVE-2024-45201/index.md)","id":"CVE-2024-45201","markdown":"https://insights.sbomify.com/CVE-2024-45201/index.md","name":"CVE-2024-45201","record":{"aliases":["GHSA-fxc2-8m62-m85x","PYSEC-2024-192","PYSEC-2026-395"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python LLM library","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code via unsafe exec calls in the download integration module of the llama_index library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"llamaindex","vendor":"llamaindex"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"An issue was discovered in llama_index before 0.10.38. download/integration.py includes an exec call for import {cls_name}.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"LlamaIndex includes an exec call for `import {cls_name}`","id":"CVE-2024-45201","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"Open redirect in \"@cosme\" App for Android","id":"CVE-2024-45203"},"packages":[{"ecosystem":"PyPI","fixed":["0.10.38"],"introduced":["0"],"last_affected":[],"package":"llama-index","purl":"pkg:pypi/llama-index","source":"PYSEC-2024-192"},{"ecosystem":"PyPI","fixed":["0.10.38"],"introduced":["0"],"last_affected":[],"package":"llama-index-core","purl":null,"source":"GHSA-fxc2-8m62-m85x"},{"ecosystem":"PyPI","fixed":["0.10.38"],"introduced":["0"],"last_affected":[],"package":"llama-index-core","purl":"pkg:pypi/llama-index-core","source":"GHSA-fxc2-8m62-m85x"},{"ecosystem":"PyPI","fixed":["0.10.38"],"introduced":["0"],"last_affected":[],"package":"llama-index-core","purl":"pkg:pypi/llama-index-core","source":"PYSEC-2026-395"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2024-45200"},"products":["n/a"],"published":"2024-08-22","related":[{"cvss_score":10,"headline":"SQL Injection to RCE in run-llama/llama_index","id":"CVE-2024-12909","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2025-1793","kev_date_added":null,"published":"2025-06-05"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2025-1750","kev_date_added":null,"published":"2025-06-02"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2024-11958","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":9.8,"headline":"Command Injection in run-llama/llama_index","id":"CVE-2024-3271","kev_date_added":null,"published":"2024-04-16"},{"cvss_score":9.8,"headline":"SQL injection in llama-index","id":"CVE-2024-23751","kev_date_added":null,"published":"2024-01-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-25","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via unsafe exec calls in the download integration module of the llama_index library.","url":"https://insights.sbomify.com/CVE-2024-45201/"}