{"id":"CVE-2024-12704","published":"2025-03-20T10:09:06Z","modified":"2025-10-15T12:50:18Z","title":"Denial of Service (DoS) in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00831,"percentile":0.58481,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://huntr.com/bounties/a0b638fd-21c6-4ba7-b381-6ab98472a02a","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/d1ecfb77578d089cbe66728f18f635c09aa32a05","tags":[]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":11.7},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.12.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-20T17:54:16.910026Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-core","vulnerableRanges":["<0.12.6"],"patched":["0.12.6"],"from":["GHSA-j3wr-m6xh-64hg","PYSEC-2026-1563"],"provenance":"source"},{"ecosystem":"PyPI","package":"llama-index","vulnerableRanges":["<=0.12.5"],"patched":[],"from":["PYSEC-2025-244"],"provenance":"source"}],"summary":{"text":"A flaw in the LangChainLLM class of the run-llama/llama_index repository (version v0.12.5) lies in the stream_complete method, where a thread that terminates abnormally before the LLM call leaves the get_response_gen method of StreamingGeneratorCallbackHandler in an infinite loop, since it has no exception handling for that case. An attacker who can supply an input of an incorrect type over the network, without authentication or user interaction, can trigger this condition and keep the process running indefinitely, causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:55:05Z"},"euvd":{"id":"EUVD-2025-7006","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-3098","published":"2024-04-10","fixed":"0.10.24","kev":false},{"cve":"CVE-2024-3271","published":"2024-04-16","fixed":"0.10.24","kev":false},{"cve":"CVE-2024-45201","published":"2024-08-22","fixed":"0.10.38","kev":false},{"cve":"CVE-2024-12704","published":"2025-03-20","fixed":"0.12.6","kev":false},{"cve":"CVE-2025-5302","published":"2025-08-25","fixed":"0.12.38","kev":false,"link":{"from":"CVE-2024-12704","to":"CVE-2025-5302","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-core","fromFixed":"0.12.6","toFixed":"0.12.38","daysApart":158}]}},{"cve":"CVE-2025-5472","published":"2025-07-07","fixed":"0.12.38","kev":false,"link":{"from":"CVE-2024-12704","to":"CVE-2025-5472","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-core","fromFixed":"0.12.6","toFixed":"0.12.38","daysApart":109}]}},{"cve":"CVE-2025-3108","published":"2025-07-06","fixed":"0.12.41","kev":false}],"package":"PyPI:llama-index-core"}}