CVE-2025-58446

Source
https://cve.org/CVERecord?id=CVE-2025-58446
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58446.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-58446
Aliases
Related
Published
2025-09-06T19:06:10.141Z
Modified
2026-07-15T01:49:05.920471475Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
xgrammar vulnerable to denial of service by huge enum grammar
Details

xgrammar is an open-source library for efficient, flexible, and portable structured generation. A grammar optimizer introduced in 0.1.23 processes large grammars (>100k characters) at very low rates, and can be used for DOS of model providers. This issue is fixed in version 0.1.24.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58446.json",
    "cwe_ids": [
        "CWE-770"
    ],
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "= 0.1.23, <  0.1.24"
                },
                {
                    "last_affected": "= 0.1.23, <  0.1.24"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/mlc-ai/xgrammar

Affected ranges

Type
GIT
Repo
https://github.com/mlc-ai/xgrammar
Events
Database specific
{
    "cpe": "cpe:2.3:a:mlc-ai:xgrammar:0.1.23:*:*:*:*:*:*:*",
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0.1.23"
        },
        {
            "last_affected": "0.1.23"
        }
    ]
}

Affected versions

0.*
0.1.23

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58446.json"