Skip to main content

ruby_llm EUVDEUVD-2026-58032

| CVE-2026-67991 HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-08-13 mitre GHSA-42r3-x6vx-x49x
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify ruby_llm endpoint accepting name input
  2. Delivery
    Submit crafted long string as class/agent/tool name
  3. Exploit
    Trigger polynomial backtracking in Utils.underscore regex
  4. Execution
    Exhaust Ruby process CPU
  5. Impact
    Service denial for legitimate users

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The following conditions must all be true for exploitation: (1) The application runs on Ruby 3.1.x - later Ruby versions may not exhibit the same backtracking behavior; (2) User-controlled input reaches the RubyLLM::Utils.underscore method as a class, agent, or tool name without prior length sanitization; (3) The attacker can submit requests to the affected endpoint without authentication, or holds credentials if the endpoint is authenticated. Exploitation is limited by the Ruby version constraint (non-3.1.x deployments are likely unaffected or less severely affected), and by whether the application's architecture exposes name inputs to external callers at all - internal-only pipelines where names are hardcoded are not exploitable remotely. No special configuration beyond using the affected commit of ruby_llm on Ruby 3.1.x is required.

Impact

CRITICAL DATA CONFLICT: The provided CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N scores Confidentiality:High and Availability:None, which is directly inconsistent with the CVE description, which describes an availability-only denial-of-service impact with no disclosure of sensitive data. This mismatch is a significant data quality issue - the C:H metric is almost certainly a scoring error; the correct vector for a pure DoS should reflect A:H and C:N. Relying on the published CVSS score of 7.5 for prioritization is misleading in context. The real-world risk, correctly framed, is a targeted DoS: a publicly available PoC means exploitation is low-effort, and Ruby 3.1.x specificity narrows but does not eliminate the affected population. EPSS data was not provided. No KEV listing means confirmed active exploitation is absent. Risk is real but moderate - availability impact only, limited to applications on a specific Ruby version that expose name-controlled inputs to attackers.

Exploit ScenarioDerived

An attacker identifies a publicly facing API endpoint of a Ruby application built on ruby_llm that accepts user-controlled class, agent, or tool names (for example, a multi-agent orchestration interface). Using the public PoC from the GitHub Gist, the attacker submits a crafted name consisting of a very long string designed to maximize regex backtracking in Utils.underscore, causing the Ruby 3.1.x process to consume excessive CPU for each such request and rendering the service unresponsive to legitimate users.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Polynomial regular expression denial-of-service in the crmne/ruby_llm Ruby gem allows remote unauthenticated attackers to exhaust CPU resources by submitting a crafted, excessively long class, agent, or tool name that triggers the inefficient regex in RubyLLM::Utils.underscore. The vulnerability is constrained to Ruby 3.1.x environments due to engine-specific regex behavior at that commit. A public proof-of-concept exists (hosted as a GitHub Gist), though no active exploitation has been confirmed by CISA KEV.

RemediationAI

Upgrade to a commit or release of ruby_llm that patches the Utils.underscore regex - the exact fixed release version is not independently confirmed from available data; consumers should check the upstream repository at https://github.com/crmne/ruby_llm for a tagged release addressing this issue. As a compensating control until patching is possible, applications should enforce strict length limits on any user-supplied class, agent, or tool names before they reach RubyLLM::Utils.underscore - for example, reject inputs exceeding a few hundred characters at the API boundary. Additionally, consider upgrading the Ruby runtime beyond 3.1.x, as the regex behavior responsible for polynomial backtracking may differ in later Ruby versions. Rate-limiting API endpoints that accept name inputs limits the blast radius of repeated DoS attempts. Note that input length validation has no functional side effects for legitimate use cases, since valid class and agent names are rarely longer than a few dozen characters.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

RubyLLM is a Ruby gem providing a client abstraction layer for LLM APIs (OpenAI, Anthropic, etc.). The vulnerable code resides in lib/ruby_llm/utils.rb at line 13 of commit fa6f279847d6d7027814539d9c0dfc3bbdfd2a83, specifically in the Utils.underscore method, which uses a regular expression to convert CamelCase strings to snake_case. On Ruby 3.1.x, the regex engine's backtracking behavior when applied to pathologically long input strings results in polynomial time complexity rather than linear time - this is classified under CWE-1333 (Inefficient Regular Expression Complexity). The affected CPE is listed as cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*:* (non-standardized), indicating the affected product has not been formally catalogued in NVD's product dictionary. The attack surface depends on whether the application passes user-controlled strings as class, agent, or tool names into the RubyLLM pipeline.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Pure availability DoS via network-reachable input; no confidentiality or integrity impact - C:H in provided vector is a scoring error.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
CVSS changed
Aug 13, 2026 - 16:22 NVD
7.5 (HIGH)
CVE Published
Aug 13, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 13, 2026 - 00:00 cve.org
HIGH 7.5

DescriptionCVE.org

crmne/ruby_llm at commit fa6f279847d6d7027814539d9c0dfc3bbdfd2a83 contains a polynomial-time regular expression denial-of-service condition in RubyLLM::Utils.underscore on Ruby 3.1.x. A very long crafted class, agent, or tool name can cause excessive CPU consumption and a denial of service.

Executive ViewAI

Why It Matters

The ruby_llm gem contains a remote denial-of-service vulnerability allowing unauthenticated attackers to exhaust CPU resources in Ruby 3.1.x environments. Organizations using this gem face direct risk of service unavailability and degraded performance from relatively low-effort attacks, affecting customer-facing operations and business continuity.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) implement strict input validation to enforce maximum lengths on class, agent, and tool names; (2) deploy rate limiting and request throttling on endpoints consuming ruby_llm; (3) remove the gem from non-critical systems if feasible; (4) establish monitoring for CPU utilization anomalies that may signal exploitation attempts. Publicly available exploit code exists, potentially lowering the barrier for attack discovery.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche Ruby LLM client gem, limited enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy