CVE-2025-61921
LOW 2.7CVSS 4.0Sinatra is vulnerable to ReDoS through ETag header value generation
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.
- Published
- 10 Oct 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-mr3q-g2mv-mr4q
- Sources
- NVDJSONOSV GHSA-mr3q-g2mv-mr4qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.7 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sinatrarb | sinatracpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:* |
< 4.2.0 | 4.2.0 |
| OSV | RubyGems | sinatra | < 4.2.0 | 4.2.0 |
References
- https://bugs.ruby-lang.org/issues/19104 · Issue Tracking, WEB
- https://github.com/sinatra/sinatra/issues/2120 · Issue Tracking, WEB
- https://github.com/sinatra/sinatra/pull/1823 · Exploit, Patch, WEB
- https://github.com/sinatra/sinatra/pull/2121 · Patch, WEB
- https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-61921 · ADVISORY
- https://github.com/sinatra/sinatra/commit/3fe8c38dc405586f7ad8f2ac748aa53e9c3615bd · WEB
- https://github.com/sinatra/sinatra/commit/8ff496bd4877520599e1479d6efead39304edceb · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2025-61921.yml · WEB
- https://github.com/sinatra/sinatra · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 10 Oct 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Oct 2025)