Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: ab428aed
Paper published December 1, 2025
Entry analyzed February 21, 2026
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

LLM Infinite Thinking DoS

A Denial-of-Service (DoS) vulnerability exists in Large Language Model (LLM) inference services where specially crafted input prompts can trigger excessively long or infinite generation loops ("infinite thinking")…

BibTeX citation

Paper-evaluated models(7)

Gemini 2.5 Pro, Lumimaid 70B, o4-mini +4 more
  • Gemini 2.5 Pro
  • Lumimaid 70B
  • o4-mini
  • MAI DS R1 671B
  • DeepSeek R1 0528 Qwen3 8B
  • Llama 3.2 3B
  • DeepSeek R1 671B

Description

A Denial-of-Service (DoS) vulnerability exists in Large Language Model (LLM) inference services where specially crafted input prompts can trigger excessively long or infinite generation loops ("infinite thinking"). This vulnerability, identified as "ThinkTrap," utilizes derivative-free optimization (CMA-ES) within a continuous surrogate embedding space to circumvent the discrete nature of token inputs. By optimizing a low-dimensional latent vector and projecting it to token sequences, an attacker can identify prompts that force the model to generate outputs reaching maximum context limits (e.g., 4096+ tokens) from short inputs (e.g., ~20 tokens). This results in asymmetric resource consumption, where minimal network traffic causes disproportionate backend computational exhaustion.

Examples

Specific adversarial prompts are generated algorithmically via the ThinkTrap framework. The attack does not rely on semantic instructions (e.g., "repeat this word") but rather on optimized token sequences that exploit the model's probabilistic decoding tendencies.

For the methodology to generate these prompts, see the paper "ThinkTrap: Denial-of-Service Attacks against Black-box LLM Services via Infinite Thinking".

Impact

Successful exploitation leads to the exhaustion of backend GPU/NPU memory and computational time (inference slots). Empirical results demonstrate that a low-rate attack (e.g., 10 requests per minute) can degrade service throughput to as low as 1% of its original capacity, increase response latency by up to 100x, and trigger Out-Of-Memory (OOM) crashes, rendering the service unavailable to legitimate users.

Affected Systems

Black-box LLM inference services and APIs, including those serving the evaluated Gemini 2.5 Pro, Lumimaid 70B, Magistral, o4-mini, MAI DS R1 671B, DeepSeek R1 0528 Qwen3 8B, Llama 3.2 3B, and DeepSeek R1 671B models. The vulnerability affects systems relying on standard First-In-First-Out (FIFO) scheduling or request-count-based rate limiting.

Mitigation Steps

  • Resource-Aware Scheduling: Implement scheduling policies such as the Virtual Token Counter (VTC) that allocate fixed token quanta (e.g., 1024 tokens) to active requests per scheduling round.
  • Token-Level Preemption: Configure the inference engine to preempt requests that exhaust their allocated quota, caching their state and re-queuing them, ensuring no single request monopolizes hardware resources.
  • Attack-Aware Resource Allocation: Develop real-time signals reflecting decoding complexity or incremental resource usage to throttle specific high-cost sessions dynamically.

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
Black-box model, service, or application access.
Related deployment categories
Model APIs
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Black-box LLM inference services and APIs, including those serving the evaluated Gemini 2.5 Pro, Lumimaid 70B, Magistral, o4-mini, MAI DS R1 671B, DeepSeek R1 0528 Qwen3 8B, Llama 3.2 3B, and DeepSeek R1 671B models…

Research Paper

ThinkTrap: Denial-of-Service Attacks against Black-box LLM Services via Infinite Thinking

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2512.07086