---
id: "CVE-2024-45201"
page: "https://infrastack.ai/live/CVE-2024-45201"
kind: "vulnerability"
aliases: ["CVE-2024-45201", "GHSA-fxc2-8m62-m85x"]
title: "LlamaIndex includes an exec call for `import {cls_name}`"
severity: "critical"
cvss: 9.8
epss: 0.00533
exploited: false
status: "open"
category: "ai-tooling"
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"]
published_at: "2024-08-22T20:15:10+00:00"
first_seen_at: "2026-11-16T15:17:21+00:00"
updated_at: "2026-11-16T15:37:59+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-fxc2-8m62-m85x", "first_seen_at": "2026-11-16T15:17:21+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-45201", "first_seen_at": "2026-11-16T15:37:59+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00533, "url": "https://api.first.org/data/v1/epss?cve=CVE-2024-45201"}]
---

# LlamaIndex includes an exec call for `import {cls_name}`

Link for people: https://infrastack.ai/live/CVE-2024-45201 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:llama-index-core affected < 0.10.38 fixed 0.10.38
- vendor:llamaindex affected < 0.10.38 fixed 0.10.38

## How to check

- Run `pip show llama-index-core` and compare the version with `0.10.38`
- 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

## Timeline

- 2026-11-16T15:17:21+00:00 ghsa https://github.com/advisories/GHSA-fxc2-8m62-m85x
- 2026-11-16T15:37:59+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-45201

## Documents

- [fix] Patch: github.com https://github.com/run-llama/llama_index/commit/bd827c30484fa085ec769fa55dc7f2add8006ac8
- [fix] Patch: github.com https://github.com/run-llama/llama_index/pull/13523
- [fix] Patch: github.com https://github.com/run-llama/llama_index/compare/v0.10.37...v0.10.38

## From the sources

An issue was discovered in llama_index before 0.10.38. `download/integration.py` includes an exec call for `import {cls_name}`.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
