CVE-2024-12704
Denial of Service (DoS) in run-llama/llama_index
- State
- Published
- Severity
- 7.5 High
- Published
- Mar 20, 2025
- Updated
- Oct 15, 2025
- Reserved
- Dec 17, 2024
Description
A vulnerability in the LangChainLLM class of the run-llama/llama_index repository, version v0.12.5, allows for a Denial of Service (DoS) attack. The stream_complete method executes the llm using a thread and retrieves the result via the get_response_gen method of the StreamingGeneratorCallbackHandler class. If the thread terminates abnormally before the _llm.predict is executed, there is no exception handling for this case, leading to an infinite loop in the get_response_gen function. This can be triggered by providing an input of an incorrect type, causing the thread to terminate and the process to continue running indefinitely.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 7.5 High | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | @huntr_ai |
Weaknesses
- CWE-835 Loop with Unreachable Exit Condition
Affected Products
| Product | Versions |
|---|---|
run-llama/llama_indexrun-llama |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.