Out-of-bounds read in XGrammar - #VU162998

 

Out-of-bounds read in XGrammar - #VU162998

Published: November 9, 2026


Vulnerability identifier: #VU162998
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

XGrammar

Remediation

Install security update from vendor's website.

XGrammar - update to 0.2.6

External References

Related Security Bulletins