Skip to content
HighVulnerabilityLLM-specific

GHSA-7rgv-gqhr-fxg3: xgrammar vulnerable to DoS via multi-layer nesting

Published
Record updated
View JSON
Affected
  • xgrammar <= 0.1.31
Fixed in
0.1.32
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

xgrammar, a structured generation library, is vulnerable to denial of service through multi-layer nesting. A grammar rule containing 30,000 layers of nested parentheses causes a segmentation fault (core dump) in the PoC, which the advisory attributes to stack overflow or memory exhaustion. The reported impact is DoS, with the PoC run against xgrammar version 0.1.31.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.