Skip to main content
← All vulnerabilities
CVE-2025-61921GHSA-MR3Q-G2MV-MR4Q

Sinatra has ReDoS vulnerability in ETag header value generation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

Sinatra is a domain-specific language for creating web applications in Ruby. In versions prior to 4.2.0, there is a denial of service vulnerability in the `If-Match` and `If-None-Match` header parsing component of Sinatra, if the `etag` method is used when constructing the response. Carefully crafted input can cause `If-Match` and `If-None-Match` header parsing in Sinatra to take an unexpected amount of time, possibly resulting in a denial of service attack vector. This header is typically involved in generating the `ETag` header value. Any applications that use the `etag` method when generating a response are impacted. Version 4.2.0 fixes the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • sinatra sinatra

    fixed in 4.2.0

  • sinatraRubyGems

    fixed in 4.2.0

References 5

GitHub · sinatra/sinatra

bugs.ruby-lang.org