CVE-2025-61921: sinatra
Vulnerability summary
CVE-2025-61921 is a high (CVSS 7.5) vulnerability in sinatra. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 41.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 6Timeline
- 10-10-2025PublishedVulnerability first disclosed.
- 10-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- OSV · WolfiEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- OSV · ChainguardEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- OSV · RubygemsEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- NVDNIST2.7LowCVSS: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 · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.50%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
0.00 pp
From 0.50% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundSinatra
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard39 products
- gitlab-cng-18.2All versions (No fix recorded)
- gitlab-cng-18.9< 18.9.1-r0
- gitlab-exporter-18.10All versions (No fix recorded)
- gitlab-exporter-18.11< 18.11.5-r2
- gitlab-exporter-18.6All versions (No fix recorded)
Debian1 product
- ruby-sinatra< 3.0.5-3+deb12u1 | All versions (No fix recorded) | < 4.2.1-1
RubyGems1 product
- sinatra< 4.2.0
Sinatra1 product
- sinatra< 4.2.0
Sinatrarb1 product
- sinatra< 4.2.0
Ubuntu1 product
- ruby-sinatra< 1.4.7-3ubuntu0.1~esm3 | < 1.4.8-1ubuntu0.1~esm3 | < 2.0.8.1-2+deb11u1ubuntu0.1~esm1 | < 4.2.1-1
Wolfi1 product
- gitlab-cng-18.2All versions (No fix recorded)
7 vendors · 45 products
References
15 links- github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4qX Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
Show all 15 references
- github.com/sinatra/sinatraPACKAGE