CVE-2024-12911:
LlamaIndex vulnerable to Creation of Temporary File in Directory with Insecure Permissions
7.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.08856%
CWE
Published
3/20/2025
Updated
3/21/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
llama-index | pip |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from SQL injection in JSONalyzeQueryEngine's default_jsonalyzer
function, as confirmed by CVE/GHSA descriptions. The function's SQL query construction with untrusted input (via prompt injection) allows execution of arbitrary SQL commands. SQLite's ATTACH DATABASE
feature enables file creation, aligning with CWE-379's temporary file creation aspect. The patch moved this class to experimental with warnings about arbitrary file creation, confirming the risk resided in this function's implementation.