CVE-2026-25048: CWE-674: Uncontrolled Recursion in mlc-ai xgrammar
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.
AI Analysis
Technical Summary
The vulnerability identified as CVE-2026-25048 affects the mlc-ai xgrammar library, an open-source tool for structured generation. The issue involves uncontrolled recursion triggered by multi-level nested syntax, leading to a segmentation fault and potential denial of service. This flaw is classified under CWE-674 (Uncontrolled Recursion). The vulnerability affects all versions before 0.1.32 and has been addressed by a patch in version 0.1.32. The CVSS 4.0 base score is 8.7, indicating high severity with network attack vector, low attack complexity, no privileges or user interaction required, and high impact on availability. Red Hat has published advisories referencing this CVE, confirming the patch availability.
Potential Impact
Exploitation of this vulnerability results in a segmentation fault causing the application to crash, which leads to a denial of service condition. There is no indication of code execution or data compromise beyond service disruption. The impact is high due to the ability to cause application crashes remotely without authentication.
Mitigation Recommendations
A fix is available in version 0.1.32 of the mlc-ai xgrammar library. Users should upgrade to version 0.1.32 or later to remediate this vulnerability. Red Hat advisories confirm the availability of patches. No additional mitigation steps are specified or required beyond applying the official fix.
CVE-2026-25048: CWE-674: Uncontrolled Recursion in mlc-ai xgrammar
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.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability identified as CVE-2026-25048 affects the mlc-ai xgrammar library, an open-source tool for structured generation. The issue involves uncontrolled recursion triggered by multi-level nested syntax, leading to a segmentation fault and potential denial of service. This flaw is classified under CWE-674 (Uncontrolled Recursion). The vulnerability affects all versions before 0.1.32 and has been addressed by a patch in version 0.1.32. The CVSS 4.0 base score is 8.7, indicating high severity with network attack vector, low attack complexity, no privileges or user interaction required, and high impact on availability. Red Hat has published advisories referencing this CVE, confirming the patch availability.
Potential Impact
Exploitation of this vulnerability results in a segmentation fault causing the application to crash, which leads to a denial of service condition. There is no indication of code execution or data compromise beyond service disruption. The impact is high due to the ability to cause application crashes remotely without authentication.
Mitigation Recommendations
A fix is available in version 0.1.32 of the mlc-ai xgrammar library. Users should upgrade to version 0.1.32 or later to remediate this vulnerability. Red Hat advisories confirm the availability of patches. No additional mitigation steps are specified or required beyond applying the official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-01-28T14:50:47.886Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-25048","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6761","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:5809","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6762","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","vendor":"Red Hat"}]
Threat ID: 69a9c05f460e1c85df0c5c4d
Added to database: 03/05/2026, 17:41:51 UTC
Last enriched: 07/22/2026, 22:30:53 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 165
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.