CVE-2024-12704

Denial of Service (DoS) in run-llama/llama_index

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.

Category

7.5
CVSS
Severity: High
CVSS 3.0 •
EPSS 0.06%
Affected: run-llama run-llama/llama_index
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-12704?
CVE-2024-12704 has been scored as a high severity vulnerability.
How to fix CVE-2024-12704?
To fix CVE-2024-12704, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-12704 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-12704 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-12704?
CVE-2024-12704 affects run-llama run-llama/llama_index.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.