CVE-2025-61921
CVE-2025-61921 · Sinatra has ReDoS vulnerability in ETag header value generation
CVSS 2.7 · Low · EPSS 0.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- sinatraNo fix published
- ruby-sinatra Debian 12Update to 3.0.5-3+deb12u1
- ruby-sinatra Debian 13No fix published
- ruby-sinatra Debian 14Update to 4.2.1-1
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-sinatra"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Updated
Fixes in distributions
- USN-8624-1 · Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS, Ubuntu Pro 22.04 LTS ·
Affected products and versions
sinatra
- Versions
- < 4.2.0: Affected
No fix published
ruby-sinatra Debian 12
- Versions
- 3.0.5-3
- Affected ranges
- ECOSYSTEM: < 3.0.5-3+deb12u1
Update to 3.0.5-3+deb12u1
ruby-sinatra Debian 13
- Versions
- 4.1.1-5
- 4.1.1-6
- 4.2.1-1
- 4.2.1-2
- 4.2.1-3
- 4.2.1-4
All versions (7)
- 4.2.1-5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
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ges
- ECOSYSTEM: < 4.2.0
Update to 4.2.0
ruby-sinatra Ubuntu Pro 16.04 LTS
- Versions
- 1.4.6-2
- 1.4.7-3
- 1.4.7-3ubuntu0.1~esm2
- Affected ranges
- ECOSYSTEM: < 1.4.7-3ubuntu0.1~esm3
Update to 1.4.7-3ubuntu0.1~esm3
ruby-sinatra Ubuntu Pro 18.04 LTS
- Versions
- 1.4.7-5
- 1.4.8-1
- 1.4.8-1ubuntu0.1~esm2
- Affected ranges
- ECOSYSTEM: < 1.4.8-1ubuntu0.1~esm3
Update to 1.4.8-1ubuntu0.1~esm3
ruby-sinatra Ubuntu Pro 22.04 LTS
- Versions
- 2.0.8.1-2
- 2.0.8.1-2+deb11u1build0.22.04.1
- Affected ranges
- ECOSYSTEM: < 2.0.8.1-2+deb11u1ubuntu0.1~esm1
Update to 2.0.8.1-2+deb11u1ubuntu0.1~esm1
ruby-sinatra Ubuntu 26.04 LTS
- Versions
- 4.1.1-5
- Affected ranges
- ECOSYSTEM: < 4.2.1-1
Update to 4.2.1-1