{"id":"CVE-2026-67987","published":"2026-09-29T20:17:22.970","lastModified":"2026-10-01T16:17:47.723","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","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwes":["CWE-1333"],"vendors":[],"products":[],"references":[{"url":"https://github.com/crmne/ruby_llm","tags":[]},{"url":"https://github.com/crmne/ruby_llm/blob/fa6f279847d6d7027814539d9c0dfc3bbdfd2a83/lib/ruby_llm/protocols/chat_completions/chat.rb#L355-L356","tags":[]},{"url":"https://github.com/crmne/ruby_llm/commit/5e88411f171721b381853fa77d254e266dcf6ad8","tags":[]}],"exploitRefs":[{"url":"https://github.com/crmne/ruby_llm","tags":[]},{"url":"https://github.com/crmne/ruby_llm/blob/fa6f279847d6d7027814539d9c0dfc3bbdfd2a83/lib/ruby_llm/protocols/chat_completions/chat.rb#L355-L356","tags":[]},{"url":"https://github.com/crmne/ruby_llm/commit/5e88411f171721b381853fa77d254e266dcf6ad8","tags":[]}],"hasPoc":true,"ai":{"summary":"A Ruby application using the crmne/ruby_llm library is vulnerable to a regular expression denial-of-service attack that can cause excessive CPU consumption when processing chat responses with many unterminated tags. This allows an attacker to delay processing and potentially exhaust system resources.","exploitability":"Exploitation is relatively straightforward as it requires sending a malicious model response containing many unterminated tags, but the attack is limited to systems using Ruby 3.1.x with the specific library version affected.","blast_radius":"The impact could be significant in chat applications or services that rely on processing LLM responses, potentially causing service delays or resource exhaustion across multiple concurrent requests.","remediation":"Upgrade to commit fa6f279847d6d7027814539d9c0dfc3bbdfd2a83 or later","detection":"No reliable host or network indicator is derivable from the published description.","tags":["dos","regex","ruby","llm"],"model":"garnet-coder","analyzedAt":"2026-10-18T10:14:27.595Z"}}