RubySec

Providing security resources for the Ruby community

CVE-2026-67991 (ruby_llm): Polynomial-Time Regular Expression Denial of Service (ReDoS) vulnerability

Polynomial-Time Regular Expression Denial of Service (ReDoS) vulnerability

Published: August 13, 2026

SECURITY IDENTIFIERS

GEM

ruby_llm

SEVERITY

CVSS v3.x: 7.5 (High)

UNAFFECTED VERSIONS

< 0.1.0.pre42

PATCHED VERSIONS

>= 2.0.0.rc1

DESCRIPTION

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.

Update: "the helper was extracted from existing code, so released gems were affected too. All three reports concern polynomial-time behavior on Ruby 3.1.x; exposure depends on untrusted data reaching the affected operation."

RELATED