Out-of-bounds read in XGrammar - #VU162998
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to crash inference servers using XGrammar for regex constraints, causing denial of service.
The vulnerability exists due to an out-of-bounds read in XGrammar's regex-to-EBNF converter when null-terminated parsing of a regex beginning with a null byte produces an empty vector. An unauthenticated remote attacker can submit a single malformed regex through an exposed SGLang or vLLM API to terminate the host process.