🛡️ CVE-2026-55574 — vllm

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-1333 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

vLLM: ReDoS via structured_outputs.regex compiled without timeout in xgrammar and outlines backends

Summary

The structured_outputs.regex API parameter passes a user-supplied regex string directly to grammar compiler backends with no compilation timeout. In the xgrammar backend, the string reaches compile_regex() with no guard. In the outlines backend, validate_regex_is_buildable() blocks structural issues (lookarounds, backreferences) but provides zero protection against exponential DFA state-space explosion. Patterns like (a+)+b pass all checks and hang the inference worker.

Root Cause

backend_xgrammar.py:91 — no timeout:

```python

ctx = self.compiler.compile_regex(grammar_spec)

```

backend_outlines.py:299–330 — structural checks only, no complexity analysis:

```python

def validate_regex_is_buildable(regex: str) -> None:

sre_parse.parse(regex) # AST parse only — does not detect exponential patterns

_check_unsupported(...) # blocks lookarounds/backrefs, not nested quantifiers

```

backend_outlines.py:64 — no timeout:

```python

oc.Index(regex_string, vocabulary.inner)

```

Impact

Denial of service — one request with an adversarial regex pattern hangs an inference worker indefinitely.

Remediation

Wrap compile_regex() and oc.Index() calls in a thread with a deadline (e.g., 5 seconds). Add complexity analysis to validate_regex_is_buildable() to detect nested quantifier patterns before compilation.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability high.

Weakness class

CVE-2026-55574 is classified as CWE-1333: Inefficient Regular Expression Complexity. A regular expression backtracks catastrophically on crafted input, consuming CPU out of proportion to input size.

Affected software

CVE-2026-55574 is recorded against 1 package.

  • vllm (fixed in 0.24.0)

Timeline and source

Published on 17 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector 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
CWE CWE-1333
Public Exploit ✅ No
Source OSV
Published 2026-07-17
Updated 2026-08-12
Modified 2026-07-17

Affected Packages

Software From version Fixed in
vllm 0.24.0

Similar Threats

Site Security Check

Is vllm part of your stack?

CVE-2026-55574 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.