CVE-2025-61921
Last modified
CVE-2025-61921 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.45% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Sinatrarb | Sinatra | < 4.2.0 |
References
- https://bugs.ruby-lang.org/issues/19104Issue Tracking
- https://github.com/sinatra/sinatra/issues/2120Issue Tracking
- https://github.com/sinatra/sinatra/pull/1823Exploit, Patch
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-61921?
How severe is CVE-2025-61921?
How do I fix CVE-2025-61921?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-61915OpenPrinting CUPS is an open source printing system for Linu…6.7
- CVE-2025-61916Spinnaker is an open source, multi-cloud continuous delivery…6.6
- CVE-2025-61917n8n is an open source workflow automation platform. From ver…7.7
- CVE-2025-61919Rack is a modular Ruby web server interface. Prior to versio…7.5
- CVE-2025-6192Use after free in Metrics in Google Chrome prior to 137.0.71…8.8
- CVE-2025-61920Authlib is a Python library which builds OAuth and OpenID Co…7.5
- CVE-2025-61922PrestaShop Checkout is the PrestaShop official payment modul…9.1
- CVE-2025-61923PrestaShop Checkout is the PrestaShop official payment modul…4.1
- CVE-2025-61924PrestaShop Checkout is the PrestaShop official payment modul…3.8
- CVE-2025-61925Astro is a web framework. Prior to version 5.14.2, Astro ref…6.5
- CVE-2025-61926Allstar is a GitHub App to set and enforce security policies…4.6
- CVE-2025-61927Happy DOM is a JavaScript implementation of a web browser wi…7.2
Are you affected by CVE-2025-61921?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
