CVE-2025-32381
published medium CVSS 3.1 · 6.5Denial of Service by abusing xgrammar unbounded cache in memory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mlc-ai | — | xgrammar< 0.1.18 | Affected | Not stated | GitHub_M |
Description
XGrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to 0.1.18, Xgrammar includes a cache for compiled grammars to increase performance with repeated use of the same grammar. This cache is held in memory. Since the cache is unbounded, a system making use of xgrammar can be abused to fill up a host's memory and case a denial of service. For example, sending many small requests to an LLM inference server with unique JSON schemas would eventually cause this denial of service to occur. This vulnerability is fixed in 0.1.18.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mlc-ai | xgrammar | < 0.1.18 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
3Provider assertions
2GitHub_M · cna
Denial of Service by abusing xgrammar unbounded cache in memory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3c256b2df07c7e1e9e653d90981d5ae508eb06b09eae6f1664d8830ad38ce52d
- Ingested
- 23 Sep 2026, 08:45:19 UTC
- Source record
- Official CVE record