{"id":"CVE-2024-12704","aliases":["CVE-2024-12704","GHSA-j3wr-m6xh-64hg","PYSEC-2025-244","PYSEC-2026-1563"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service (DoS) in run-llama/llama_index","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad en la clase LangChainLLM del repositorio run-llama/llama_index, versión v0.12.5, permite un ataque de denegación de servicio (DoS). El método stream_complete ejecuta el llm mediante un hilo y recupera el resultado mediante el método get_response_gen de la clase StreamingGeneratorCallbackHandler. Si el hilo termina de forma anómala antes de ejecutar _llm.predict, no se gestionan excepciones, lo que genera un bucle infinito en la función get_response_gen. Esto puede activarse al proporcionar una entrada de un tipo incorrecto, lo que provoca la finalización del hilo y la ejecución indefinida del proceso.","source":"nvd"}],"published":"2025-03-20T10:09:06.689Z","modified":"2026-07-13T07:26:43.232Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS: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,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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,"rating":"HIGH"}],"cwes":["CWE-755","CWE-835"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.12.6","status":"affected"}],"vendor":"run-llama","product":"run-llama/llama_index","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.12.6"}],"ecosystem":"PyPI","package":"llama-index-core","purl":"pkg:pypi/llama-index-core","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.12.5"}],"vendor":"llamaindex","product":"llamaindex","cpe":"cpe:2.3:a:llamaindex:llamaindex:0.12.5:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.12.5"}],"ecosystem":"PyPI","package":"llama-index","purl":"pkg:pypi/llama-index","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.12.6"}],"ecosystem":"PyPI","package":"llama-index-core","purl":"pkg:pypi/llama-index-core","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/a0b638fd-21c6-4ba7-b381-6ab98472a02a","tags":["evidence","exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/run-llama/llama_index/commit/d1ecfb77578d089cbe66728f18f635c09aa32a05","tags":["fix","patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12704","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/run-llama/llama_index","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/llama-index-core","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-j3wr-m6xh-64hg","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-20T17:54:16.910Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-12704","url":"https://www.cve.org/CVERecord?id=CVE-2024-12704","licence":"CVE Terms of Use","modified":"2025-10-15T12:50:18.666Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j3wr-m6xh-64hg","url":"https://github.com/advisories/GHSA-j3wr-m6xh-64hg","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:43.232Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-12704","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12704","licence":"Public domain","modified":"2026-06-17T07:00:18.560Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-244","url":"https://osv.dev/vulnerability/PYSEC-2025-244","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:43.232Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1563","url":"https://osv.dev/vulnerability/PYSEC-2026-1563","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:43.232Z"}],"updatedAt":"2026-11-25T22:58:52.361Z","epss":{"score":0.00831,"percentile":0.587,"date":"2026-12-01T12:00:22.000Z"}}