CVE-2024-45201 LlamaIndex includes an exec call for `import {cls_name}`

High 8.8 Published Updated

Attackers can execute arbitrary code via unsafe exec calls in the download integration module of the llama_index library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-45201?

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.

Official description

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

Weakness: CWE-94

Which versions are affected by CVE-2024-45201?

4 open source packages ship an affected version, including llama-index-core and llama-index. It affects 1 product.

PackageAffectedFixed in
llama-index-core PyPIAll versions0.10.38
llama-index-core PyPIAll versions0.10.38
llama-index-core PyPIAll versions0.10.38
llama-index PyPIAll versions0.10.38

Products include Llamaindex Llamaindex.

How do I fix CVE-2024-45201?

Upgrade llama-index-core to 0.10.38 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-45201 being exploited?

There is no known exploitation of CVE-2024-45201 in the wild and no public exploit code.

Sources

Also known as GHSA-fxc2-8m62-m85x, PYSEC-2024-192, PYSEC-2026-395.

Is CVE-2024-45201 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free