CVE-2025-57809
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-08-25

Last updated on: 2025-09-09

Assigner: GitHub, Inc.

Description
XGrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to version 0.1.21, XGrammar has an infinite recursion issue in the grammar. This issue has been resolved in version 0.1.21.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-08-25
Last Modified
2025-09-09
Generated
2026-06-16
AI Q&A
2025-08-26
EPSS Evaluated
2026-06-14
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
mlc-ai xgrammar to 0.1.21 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-674 The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The vulnerability in XGrammar prior to version 0.1.21 is an infinite recursion issue in the grammar. This means that the grammar definitions could cause the program to enter an endless recursive loop, potentially leading to crashes or unresponsiveness. This issue was fixed in version 0.1.21.

Impact Analysis

This vulnerability can cause the software using XGrammar to become unresponsive or crash due to infinite recursion. This can lead to denial of service or disruption of normal operations.

Mitigation Strategies

Upgrade XGrammar to version 0.1.21 or later, as this version resolves the infinite recursion issue in the grammar.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-57809. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart