What happened
vLLM's structured-output feature compiles user-supplied regexes into constrained-decoding grammars without any timeout, so a crafted regex can hang the grammar compiler and consume server resources indefinitely, denying service to all other requests on a shared vLLM instance.
Why it matters
vLLM underpins production LLM inference for many organizations; a remote, unauthenticated DoS against a core structured-output feature can take down multi-tenant inference clusters serving many downstream AI applications at once.
Attack vector
The structured_outputs.regex API parameter passes a user-supplied regular expression string directly to grammar compiler backends (e.g. xgrammar) with no compilation timeout, allowing a remote unauthenticated caller to submit a catastrophic-backtracking regex that hangs the compiler and denies service to the shared inference server.
Affected systems
vLLM inference/serving engine, versions prior to 0.24.0
Mitigation
Upgrade to vLLM >= 0.24.0, which adds compilation timeouts to structured-output regex handling.