Browse / AI Framework and Platform Flaws / CVE-2024-45201
LlamaIndex includes an exec call for `import {cls_name}`
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- llama-index-core (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.5% chance of exploitation in 30 days
How it works, in short
A class name is interpolated into an exec() statement in the download integration code, so a crafted name runs arbitrary Python. (Our summary, written by a model. The source text is below.)
Details
An issue was discovered in llama_index before 0.10.38. download/integration.py includes an exec call for import {cls_name}.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45201
- https://github.com/run-llama/llama_index/pull/13523
- https://github.com/run-llama/llama_index/commit/bd827c30484fa085ec769fa55dc7f2add8006ac8
- https://github.com/pypa/advisory-database/tree/main/vulns/llama-index-core/PYSEC-2026-395.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2024-192.yaml
- https://github.com/run-llama/llama_index
- https://github.com/run-llama/llama_index/compare/v0.10.37...v0.10.38
- https://pypi.org/project/llama-index-core
Source: GitHub Advisory Database, used under CC BY 4.0.