cve.bz

CVE-2026-25048 mlc-ai xgrammar: Uncontrolled Recursion

8.7 highExploit referenceEPSS 1.3%Fix available

High (8.7) in mlc-ai xgrammar. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in xgrammar 0.1.32.

On this page
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.

Severity

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

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
EPSS
1.3% (unchanged from 1.3% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-03-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-25048 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-25048?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-25048?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-25048 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mlc-ai:xgrammarbefore 0.1.32

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7rgv-gqhr-fxg3PyPIxgrammar<0.1.320.1.32
PYSEC-2026-2322PyPIxgrammar<0.1.320.1.32

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.2rhaiis/vllm-cuda-rhel9:1774351144Fixed 2026-03-25RHSA-2026:5809
Red Hat AI Inference Server 3.2rhaiis/model-opt-cuda-rhel9:1774547384Fixed 2026-04-07RHSA-2026:6761
Red Hat AI Inference Server 3.2rhaiis/vllm-rocm-rhel9:1775252598Fixed 2026-04-07RHSA-2026:6762
Red Hat OpenShift AI 2.25rhoai/odh-vllm-gaudi-rhel9:1780069069Fixed 2026-06-10RHSA-2026:24977
Red Hat OpenShift AI 2.25rhoai/odh-vllm-cuda-rhel9:1783998774Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 2.25rhoai/odh-vllm-rocm-rhel9:1783998857Fixed 2026-07-21RHSA-2026:42644
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-aws-cuda-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-cuda-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Will not fix
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gcp-cuda-rhel9Will not fix
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-agent-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-router-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-storage-initializer-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-25048.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON