CVE-2025-61921
published low CVSS 4.0 · 2.7Sinatra has ReDoS vulnerability in ETag header value generation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sinatra | — | sinatra< 4.2.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Ubuntu | bionic | ruby-sinatra | Advisory build | 1.4.8-1ubuntu0.1~esm3 | USN-8624-1 |
| Ubuntu | focal | ruby-rack-protection | Advisory build | 2.0.8.1-1ubuntu0.1~esm3 | USN-8624-1 |
| Ubuntu | focal | ruby-sinatra | Advisory build | 2.0.8.1-1ubuntu0.1~esm3 | USN-8624-1 |
| Ubuntu | focal | ruby-sinatra-contrib | Advisory build | 2.0.8.1-1ubuntu0.1~esm3 | USN-8624-1 |
| Ubuntu | jammy | ruby-rack-protection | Advisory build | 2.0.8.1-2+deb11u1ubuntu0.1~esm1 | USN-8624-1 |
| Ubuntu | jammy | ruby-sinatra | Advisory build | 2.0.8.1-2+deb11u1ubuntu0.1~esm1 | USN-8624-1 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | ruby-sinatra-contrib | Advisory build | 2.0.8.1-2+deb11u1ubuntu0.1~esm1 | USN-8624-1 |
| Ubuntu | xenial | ruby-sinatra | Advisory build | 1.4.7-3ubuntu0.1~esm3 | USN-8624-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sinatra | sinatra | < 4.2.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
5Provider assertions
2GitHub_M · cna
Sinatra has ReDoS vulnerability in ETag header value generation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 94da7cbba72a69ef94dae762f5789a4d0046df1c26f04f0a2d5f9c0c842bd72c
- Ingested
- 23 Sep 2026, 08:55:13 UTC
- Source record
- Official CVE record