Live threats

All CVEs / Llamaindex

CVE-2024-12704Llamaindex

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
0.9%
probability of exploitation in 30 days · percentile 56
Auth required
No
Published
Mar 20, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Llamaindex.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI llama-index ≤ 0.12.5 no fixed version —
PyPI llama-index-core < 0.12.6 0.12.6 pip install "llama-index-core>=0.12.6"
PyPI llama-index-core < 0.12.6 0.12.6 pip install "llama-index-core>=0.12.6"

Per OSV / GitHub Advisories (PYSEC-2025-244, GHSA-j3wr-m6xh-64hg, PYSEC-2026-1563). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
llamaindexllamaindex0.12.5

Official sources

References

Links published by the sources. Open them with care.