CVE-2024-12704
March 20, 2025
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.
Affected Packages
llama-index-core (CONDA):
Affected version(s) >=0.10.5 <0.12.6Fix Suggestion:
Update to version 0.12.6https://github.com/run-llama/llama_index.git (GITHUB):
Affected version(s) >=v0.2.17 <v0.12.6Fix Suggestion:
Update to version v0.12.6llama-index-core (PYTHON):
Affected version(s) >=0.9.41 <0.12.6Fix Suggestion:
Update to version 0.12.6llama-index-core (PYTHON):
Affected version(s) >=0.9.41 <0.12.6Fix Suggestion:
Update to version 0.12.6Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.27