Description
crmne/ruby_llm at commit fa6f279847d6d7027814539d9c0dfc3bbdfd2a83 contains polynomial-time regular expression denial-of-service conditions in think-tag response parsing on Ruby 3.1.x. A malicious or anomalous model response containing many unterminated <think> tags can cause excessive CPU consumption in two consecutive regular expressions and delay chat-completion processing
Published: 2026-09-29
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service (CPU exhaustion)
Action: Assess Impact
AI Analysis

Impact

The vulnerability resides in the ruby_llm library used with Ruby 3.1.x and involves polynomial‑time regular expressions that parse <think> tags. This instance of CWE-1333 involves excessive resource consumption. Crafting a model response containing many unterminated <think> tags triggers two consecutive regular expressions that consume excessive CPU time, delaying or blocking chat‑completion responses. It can lead to a denial‑of‑service by exhausting the processor resources of the application.

Affected Systems

Any deployment of the ruby_llm library that targets Ruby 3.1.x, such as an application running the reference commit fa6f279847d6d7027814539d9c0dfc3bbdfd2a83, is affected. The vendor is unlisted; the library is open‑source on GitHub under the crmne organization.

Risk and Exploitability

The EPSS score is < 1%, indicating a low probability of exploitation, and the CVSS score of 7.5 shows a high severity vulnerability. The likely attack vector involves a malicious or anomalous model response that the application processes, which could be triggered by an attacker that controls the upstream model output or that injects crafted responses. Successful exploitation would cause CPU exhaustion and prevent timely chat completions, impacting the availability of the service.

Generated by OpenCVE AI on October 1, 2026 at 21:02 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest release of ruby_llm that addresses the regex issue or revert to a stable commit prior to the vulnerability if an update is not yet available.
  • Sanitize or validate incoming model responses so that <think> tags are properly closed before regex parsing; consider stripping unterminated tags or limiting the number of <think> tags processed.
  • Configure application or operating system resource limits, such as CPU time quotas or thread timeouts, to prevent a single chat completion from consuming excessive processing time.
  • If immediate update is not possible, temporarily disable think‑tag parsing or replace the regexes with safer parsing logic until a patch is available.

Generated by OpenCVE AI on October 1, 2026 at 21:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 01 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Title Denial‑of‑Service via Polynomial‑Time Regex in ruby_llm <think> Tag Parsing

Thu, 01 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
Title Ruby LLM Regular Expression Denial‑of‑Service in Think‑Tag Parsing
Weaknesses CWE-20
CWE-770

Thu, 01 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 01 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1333
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Wed, 30 Sep 2026 11:30:00 +0000

Type Values Removed Values Added
Title Ruby LLM Regular Expression Denial‑of‑Service in Think‑Tag Parsing
Weaknesses CWE-20
CWE-770

Tue, 29 Sep 2026 20:00:00 +0000

Type Values Removed Values Added
Description crmne/ruby_llm at commit fa6f279847d6d7027814539d9c0dfc3bbdfd2a83 contains polynomial-time regular expression denial-of-service conditions in think-tag response parsing on Ruby 3.1.x. A malicious or anomalous model response containing many unterminated <think> tags can cause excessive CPU consumption in two consecutive regular expressions and delay chat-completion processing
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-01T15:22:56.624Z

Reserved: 2026-07-30T00:00:00.000Z

Link: CVE-2026-67987

cve-icon Vulnrichment

Updated: 2026-10-01T15:22:49.011Z

cve-icon NVD

Status : Deferred

Published: 2026-09-29T20:17:22.970

Modified: 2026-10-01T16:17:47.723

Link: CVE-2026-67987

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T21:15:09Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity