{"id":"CVE-2026-67987","details":"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 \u003cthink\u003e tags can cause excessive CPU consumption in two consecutive regular expressions and delay chat-completion processing","modified":"2026-10-03T03:30:37.263232212Z","published":"2026-09-29T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67987.json"},"references":[{"type":"WEB","url":"https://github.com/crmne/ruby_llm/blob/fa6f279847d6d7027814539d9c0dfc3bbdfd2a83/lib/ruby_llm/protocols/chat_completions/chat.rb#L355-L356"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/67xxx/CVE-2026-67987.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67987"},{"type":"FIX","url":"https://github.com/crmne/ruby_llm/commit/5e88411f171721b381853fa77d254e266dcf6ad8"},{"type":"PACKAGE","url":"https://github.com/crmne/ruby_llm"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/crmne/ruby_llm","events":[{"introduced":"0"},{"fixed":"5e88411f171721b381853fa77d254e266dcf6ad8"}],"database_specific":{"source":"REFERENCES"}}],"versions":["1.16.0","1.15.0","1.14.1","1.14.0","1.13.2","1.13.1","1.13.0","1.12.1","1.12.0","1.11.0","1.10.0","1.9.2","1.9.1","1.9.0","1.8.2","1.8.1","1.8.0","1.7.1","1.7.0","1.6.4","1.6.3","1.6.2","1.6.1","1.6.0","1.5.1","1.5.0","1.4.0","1.3.1","1.3.0","1.3.0rc1","1.2.0","1.1.2","1.1.1","1.1.0","1.1.0rc2","1.1.0rc1","1.0.1","1.0.0","0.1.0.pre42"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-67987.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}