CVE-2026-25048
HIGH 8.7CVSS 4.0xgrammar vulnerable to DoS via multi-layer nesting
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.
- Published
- 5 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-674
- Also known as
- GHSA-7rgv-gqhr-fxg3PYSEC-2026-2322
- Sources
- NVDJSONOSV GHSA-7rgv-gqhr-fxg3JSONOSV PYSEC-2026-2322JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mlc-ai | xgrammarcpe:2.3:a:mlc-ai:xgrammar:*:*:*:*:*:*:*:* |
< 0.1.32 | 0.1.32 |
| OSV | PyPI | xgrammar | < 0.1.32 | 0.1.32 |
References
- https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32 · Release Notes, WEB, ADVISORY
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3 · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://access.redhat.com/errata/RHSA-2026:24977 · ADVISORY
- https://access.redhat.com/errata/RHSA-2026:42644
- https://access.redhat.com/errata/RHSA-2026:5809 · ADVISORY
- https://access.redhat.com/errata/RHSA-2026:6761 · ADVISORY
- https://access.redhat.com/errata/RHSA-2026:6762 · ADVISORY
- https://access.redhat.com/security/cve/CVE-2026-25048 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2444840 · REPORT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25048 · ADVISORY
- https://github.com/mlc-ai/xgrammar · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 5 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Mar 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Mar 2026)