CVE-2025-61921 Details
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.
A denial-of-service vulnerability has been identified in Sinatra versions prior to 4.2.0. The issue arises in the parsing of 'If-Match' and 'If-None-Match' headers when the 'etag' method is used to construct responses. This vulnerability can cause the header parsing to take an excessive amount of time, potentially leading to a denial-of-service condition. Applications that utilize the 'etag' method in response generation are affected, particularly those running on Ruby versions prior to 3.2.
Users can upgrade to Sinatra version 4.2.0 or later to address this vulnerability. Additionally, applications running on Ruby 3.2 or later are not affected.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bugs.ruby-lang.org/issues/19104 | [email protected] | Issue Tracking |
| https://github.com/sinatra/sinatra/issues/2120 | [email protected] | Issue Tracking |
| https://github.com/sinatra/sinatra/pull/1823 | [email protected] | ExploitPatch |
| https://github.com/sinatra/sinatra/pull/2121 | [email protected] | Patch |
| https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sinatrarb sinatra | < 4.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 31, 2025 | Initial Analysis | [email protected] |
| Oct 10, 2025 | New CVE Received | [email protected] |