Skip to content
Submit incident
AII-1001-85629
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

DoS vulnerability in llama_index langchain callback handler fixed

A denial-of-service vulnerability in run-llama/llama_index's langchain callback handler allowed attackers to cause indefinite hangs through the response generator. The issue was patched by adding a 120-second timeout to the get_response_gen method.

20 March 2025 Β· run-llama Β· Security and cyberattacks
20 March 2025
AII-1001-856293 sources ↓
Quick facts
Category
Security and cyberattacks
Source
github.com
Date
20 March 2025
Drafted by
Raidu Incident Detection

What happened

A denial-of-service vulnerability (CVE-2024-12704) was identified in the langchain callback handler component of run-llama/llama_index, specifically in the get_response_gen method.

The vulnerability allowed indefinite hangs in the response generation process due to lack of timeout protection.

Reported impact

The vulnerability could enable attackers to cause service disruption by triggering the response generator to hang indefinitely.

Index analysis

The get_response_gen method in llama_index/core/langchain_helpers/streaming.py was modified to add timeout protection with a default 120-second limit.

Governance controls

A timeout parameter was added to the get_response_gen method to prevent indefinite waits, and a small sleep interval (0.01 seconds) was introduced to prevent CPU spinning during idle loops.

Classification

Category
Security and cyberattacks
Industry
IT infrastructure and hosting
Harm status
Potential harm
Intent
Unknown
Timing
Unknown
AI systems
llama_index (run-llama)

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

github.com
https://github.com/run-llama/llama_index/commit/d1ecfb77578d089cbe66728f18f635c09aa32a05
huntr.com
https://huntr.com/bounties/a0b638fd-21c6-4ba7-b381-6ab98472a02a
cve.org
NVD entry