CVE-2025-58446 Details
Description
xgrammar is an open-source library for efficient, flexible, and portable structured generation. A grammar optimizer introduced in 0.1.23 processes large grammars (>100k characters) at very low rates, and can be used for DOS of model providers. This issue is fixed in version 0.1.24.
A denial-of-service vulnerability has been identified in the xgrammar library version 0.1.23. The issue arises from a grammar optimizer that processes large grammars, exceeding 100,000 characters, at very low speeds. This slowdown can be exploited to disrupt model providers that utilize the library. The vulnerability does not exist in version 0.1.16, indicating that it is a regression introduced in 0.1.23. The problem has been addressed in version 0.1.24, which optimizes the grammar processing speed and disables certain slow optimizations for large grammars.
Users can update to xgrammar version 0.1.24, which includes the necessary optimizations to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mlc-ai xgrammar | 0.1.23 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 18, 2025 | Initial Analysis | [email protected] |
| Sep 6, 2025 | New CVE Received | [email protected] |