CVE-2026-25048
xgrammar: Multi-layer nesting causes DoS
- State
- Published
- Severity
- 8.7 High
- Published
- Mar 5, 2026
- Updated
- Jul 21, 2026
- Reserved
- Jan 28, 2026
Description
xgrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to version 0.1.32, the multi-level nested syntax caused a segmentation fault (core dumped). This issue has been patched in version 0.1.32.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.7 High | 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 | GitHub_M |
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | redhat-SADP |
Weaknesses
- CWE-674 Uncontrolled Recursion
Affected Products
| Product | Versions |
|---|---|
xgrammarmlc-ai |
|
References
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3
- https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32
- https://access.redhat.com/security/cve/CVE-2026-25048vdb-entry
- RHBZ#2444840issue-tracking
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json
- https://access.redhat.com/errata/RHSA-2026:6761vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:5809vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6762vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:42644vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:24977vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.