INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-45201

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

CVE-2024-45201 ยท 2024-08-22 critical

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

Source: GitHub Advisory Database, used under CC BY 4.0.