{"cve":"CVE-2024-12704","nvd":{"published":"2025-03-20T10:15:29.383","modified":"2026-06-17T07:00:18.560","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-835"],"references":["https://github.com/run-llama/llama_index/commit/d1ecfb77578d089cbe66728f18f635c09aa32a05","https://huntr.com/bounties/a0b638fd-21c6-4ba7-b381-6ab98472a02a"],"products":["llamaindex:llamaindex"],"source":"nvd","synced_at":"2026-10-19T22:00:17.429720821+00:00"},"epss":{"cve":"CVE-2024-12704","score":0.00831,"percentile":0.57607,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-j3wr-m6xh-64hg","url":"https://osv.dev/vulnerability/GHSA-j3wr-m6xh-64hg","summary":"LlamaIndex Improper Handling of Exceptional Conditions vulnerability","modified":"2026-07-13T07:26:43.232587643Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":["<0.12.6"],"fixed":["0.12.6"]}]},{"id":"PYSEC-2025-244","url":"https://osv.dev/vulnerability/PYSEC-2025-244","summary":"","modified":"2026-07-13T07:26:43.232587643Z","packages":[{"ecosystem":"PyPI","name":"llama-index","purl":"pkg:pypi/llama-index","ranges":["<=0.12.5"],"fixed":[]}]},{"id":"PYSEC-2026-1563","url":"https://osv.dev/vulnerability/PYSEC-2026-1563","summary":"LlamaIndex Improper Handling of Exceptional Conditions vulnerability","modified":"2026-07-13T07:26:43.232587643Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":["<0.12.6"],"fixed":["0.12.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}