7.5
CWE
755
Advisory Published
Advisory Published
Updated

CVE-2024-12704: Denial of Service (DoS) in run-llama/llama_index

First published: Thu Mar 20 2025(Updated: )

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.

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
pip/llama_index<0.12.6
0.12.6
LlamaIndex

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-12704?

    CVE-2024-12704 has a severity rating that indicates it can lead to a Denial of Service (DoS) attack.

  • How do I fix CVE-2024-12704?

    To fix CVE-2024-12704, upgrade to the llama_index package version 0.12.6 or later.

  • Which software versions are affected by CVE-2024-12704?

    CVE-2024-12704 affects the LangChainLLM class in the run-llama/llama_index repository version v0.12.5.

  • What kind of attack can CVE-2024-12704 facilitate?

    CVE-2024-12704 can facilitate a Denial of Service (DoS) attack due to its specific implementation in the stream_complete method.

  • Who is the vendor for CVE-2024-12704?

    The vendor for CVE-2024-12704 is run-llama, associated with the llama_index software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203