CVE-2024-45201: LlamaIndex includes an exec call for `import {cls_name}`
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.48805%
CWE
Published
8/22/2024
Updated
1/21/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| llama-index-core | pip | < 0.10.38 | 0.10.38 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the removed exec(f'from {module_import_str} import {cls_name}') line in download_integration(). This pattern allows arbitrary code execution if cls_name/module_import_str are controlled by an attacker, matching CWE-94. The commit explicitly removes this exec call as the fix, and all vulnerability descriptions directly reference this code pattern as the root cause.