|
| 1 | +--- |
| 2 | +layout: advisory |
| 3 | +title: 'CVE-2026-67991 (ruby_llm): Polynomial-Time Regular Expression Denial of Service |
| 4 | + (ReDoS) vulnerability' |
| 5 | +comments: false |
| 6 | +categories: |
| 7 | +- ruby_llm |
| 8 | +advisory: |
| 9 | + gem: ruby_llm |
| 10 | + cve: 2026-67991 |
| 11 | + ghsa: 42r3-x6vx-x49x |
| 12 | + url: https://nvd.nist.gov/vuln/detail/CVE-2026-67991 |
| 13 | + title: Polynomial-Time Regular Expression Denial of Service (ReDoS) vulnerability |
| 14 | + date: 2026-08-13 |
| 15 | + description: |- |
| 16 | + crmne/ruby_llm at commit fa6f279847d6d7027814539d9c0dfc3bbdfd2a83 |
| 17 | + contains a polynomial-time regular expression denial-of-service |
| 18 | + condition in RubyLLM::Utils.underscore on Ruby 3.1.x. |
| 19 | + A very long crafted class, agent, or tool name can cause |
| 20 | + excessive CPU consumption and a denial of service. |
| 21 | +
|
| 22 | + Update: "the helper was extracted from existing code, so released |
| 23 | + gems were affected too. All three reports concern polynomial-time |
| 24 | + behavior on Ruby 3.1.x; exposure depends on untrusted data reaching |
| 25 | + the affected operation." |
| 26 | + cvss_v3: 7.5 |
| 27 | + unaffected_versions: |
| 28 | + - "< 0.1.0.pre42" |
| 29 | + patched_versions: |
| 30 | + - ">= 2.0.0.rc1" |
| 31 | + related: |
| 32 | + url: |
| 33 | + - https://nvd.nist.gov/vuln/detail/CVE-2026-67991 |
| 34 | + - https://github.com/crmne/ruby_llm/releases/tag/v2.0.0.rc1 |
| 35 | + - https://rubygems.org/gems/ruby_llm/versions/2.0.0.rc1 |
| 36 | + - https://github.com/crmne/ruby_llm/commit/9d75b033d7d00c4e1baa9b0afb4828faa8bd6602 |
| 37 | + - https://gist.github.com/Zykis1024/9f2d68fa3fd4e3a0ab83063bbe61a8e2 |
| 38 | + - https://github.com/crmne/ruby_llm/blob/fa6f279847d6d7027814539d9c0dfc3bbdfd2a83/lib/ruby_llm/utils.rb#L13 |
| 39 | + - https://github.com/advisories/GHSA-42r3-x6vx-x49x |
| 40 | + notes: | |
| 41 | + - cvss_v3 from nvd.nist.gov and GHSA URL |
| 42 | + - 9/14/2026: Versions data and "description" update came from developer email: |
| 43 | + -- "CVE-2026-67991: affected >= 0.1.0.pre42, < 2.0.0.rc1. |
| 44 | + Fix: https://github.com/crmne/ruby_llm/commit/9d75b033d7d00c4e1baa9b0afb4828faa8bd6602" |
| 45 | +--- |
0 commit comments