{"id":"CVE-2025-61921","published":"2025-10-10T19:28:10Z","modified":"2025-10-10T20:54:47Z","title":"Sinatra has ReDoS vulnerability in ETag header value generation","vendor":"sinatra","product":"sinatra","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00495,"percentile":0.43397,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sinatra/sinatra/issues/2120","tags":["x_refsource_MISC"]},{"url":"https://github.com/sinatra/sinatra/pull/1823","tags":["x_refsource_MISC"]},{"url":"https://github.com/sinatra/sinatra/pull/2121","tags":["x_refsource_MISC"]},{"url":"https://bugs.ruby-lang.org/issues/19104","tags":["x_refsource_MISC"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":8.68},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"sinatra","affectedVersions":[{"vendor":"sinatra","product":"sinatra","versions":["< 4.2.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-10T20:54:24.202335Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"sinatra","vulnerableRanges":["<4.2.0"],"patched":["4.2.0"],"from":["GHSA-mr3q-g2mv-mr4q"],"provenance":"source"}],"summary":{"text":"Sinatra, the Ruby web application DSL, contains a regular expression complexity flaw in its parsing of the If-Match and If-None-Match headers, which are used when generating ETag values via the etag method. Remote, unauthenticated attackers who can send requests to an application that calls etag can supply specially crafted header input that makes parsing take disproportionately long, causing denial of service, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:06Z"},"euvd":{"id":"EUVD-2025-33767","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-29970","published":"2022-05-02","fixed":"2.2.0","kev":false},{"cve":"CVE-2022-45442","published":"2022-11-28","fixed":"3.0.4","kev":false},{"cve":"CVE-2024-21510","published":"2024-11-01","fixed":"4.1.0","kev":false,"link":{"from":"CVE-2024-21510","to":"CVE-2025-61921","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:sinatra","fromFixed":"4.1.0","toFixed":"4.2.0","daysApart":343}]}},{"cve":"CVE-2025-61921","published":"2025-10-10","fixed":"4.2.0","kev":false}],"package":"RubyGems:sinatra"}}