Skip to content
MediumVulnerabilityLLM-specific

GHSA-j828-28rj-hfhp: vLLM vulnerable to Regular Expression Denial of Service

Published
Record updated
View JSON
Affected
  • vllm >= 0.6.3, < 0.9.0
Fixed in
0.9.0

Summary

A review found several regular expressions in the vllm codebase that are susceptible to Regular Expression Denial of Service (ReDoS). Crafted input passed to these patterns can trigger catastrophic backtracking, causing severe performance degradation. The affected locations include vllm/lora/utils.py, vllm/entrypoints/openai/tool_parsers/phi4mini_tool_parser.py, vllm/entrypoints/openai/serving_chat.py, and benchmarks/benchmark_serving_structured_output.py.

Mitigation

Fix proposed in https://github.com/vllm-project/vllm/pull/18454. Per-location remediation suggestions include limiting input string length, using stricter or more specific patterns, preferring structured or JSON parsing, and using stepwise string search before applying regex.