CVE-2026-25048 Details
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.
A denial-of-service vulnerability has been identified in the Xgrammar library, prior to version 0.1.32. The issue arises from multi-level nested syntax, which can cause a segmentation fault and core dump. This vulnerability can be exploited by creating a grammar rule with 30,000 layers of nested parentheses, triggering a stack overflow or memory exhaustion.
Users can upgrade to Xgrammar version 0.1.32, where this vulnerability has been patched.
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 Mar 5, 2026References 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.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:24977 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:42644 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:5809 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:6761 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:6762 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-25048 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2444840 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json | redhat-SADP | |
| https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32 | [email protected] | Release Notes |
| https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | redhat-SADP |
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mlc-ai xgrammar | < 0.1.32 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Mar 13, 2026 | Initial Analysis | [email protected] |
| Mar 5, 2026 | New CVE Received | [email protected] |