# CVE-2026-25048: xgrammar: Multi-layer nesting causes DoS

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-05T15:34:42.095Z
- Modified: 2026-09-10T03:50:38.008Z
- Also known as: GHSA-7rgv-gqhr-fxg3, PYSEC-2026-2322
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mlc-ai xgrammar: < 0.1.32; before 0.1.32
- rhaiis/vllm-cuda-rhel9: no versions given (not affected: from 1774351144 before *)
- rhaiis/model-opt-cuda-rhel9: no versions given (not affected: from 1774547384 before *)
- rhaiis/vllm-rocm-rhel9: no versions given (not affected: from 1775252598 before *)
- rhoai/odh-vllm-gaudi-rhel9: no versions given (not affected: from 1780069069 before *)
- rhoai/odh-vllm-cuda-rhel9: no versions given (not affected: from 1783998774 before *)
- rhoai/odh-vllm-rocm-rhel9: no versions given (not affected: from 1783998857 before *)
- rhaiis/vllm-tpu-rhel9: no versions given
- rhelai3/bootc-aws-cuda-rhel9: no versions given
- rhelai3/bootc-azure-cuda-rhel9: no versions given
- rhelai3/bootc-cuda-rhel9: no versions given
- rhelai3/bootc-gcp-cuda-rhel9: no versions given
- rhoai/odh-kserve-agent-rhel9: no versions given
- rhoai/odh-kserve-controller-rhel9: no versions given
- rhoai/odh-kserve-router-rhel9: no versions given
- rhoai/odh-kserve-storage-initializer-rhel9: no versions given
- xgrammar (PyPI): before 0.1.32

## Every score

- GitHub_M: CVSS: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`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3> (exploit, evidence, vendor-advisory, web)
- <https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32> (advisory, release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-25048> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2444840> (issue-tracking, report)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:6761> (advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:5809> (advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:6762> (advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:42644> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:24977> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25048> (advisory)
- <https://github.com/mlc-ai/xgrammar> (package)

## Sources

- CVE List: [CVE-2026-25048](https://www.cve.org/CVERecord?id=CVE-2026-25048), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-7rgv-gqhr-fxg3](https://github.com/advisories/GHSA-7rgv-gqhr-fxg3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-25048](https://nvd.nist.gov/vuln/detail/CVE-2026-25048), Public domain, modified 2026-07-21
- PyPA Advisory Database: [PYSEC-2026-2322](https://osv.dev/vulnerability/PYSEC-2026-2322), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-25048 · Whole record: https://cve.day/CVE-2026-25048.json · Rebuilt by cve.day 2026-11-25T22:59:15.316Z
