CVE-2025-61921

Publication date 10 October 2025

Last updated 7 August 2026


Ubuntu priority

Cvss 3 Severity Score

7.5 · High

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
ruby-sinatra 26.04 LTS resolute
Fixed 4.2.1-1
25.10 questing
Not affected
25.04 plucky
Not affected
24.04 LTS noble
Not affected
22.04 LTS jammy
Fixed 2.0.8.1-2+deb11u1ubuntu0.1~esm1
20.04 LTS focal
Fixed 2.0.8.1-1ubuntu0.1~esm3
18.04 LTS bionic
Fixed 1.4.8-1ubuntu0.1~esm3
16.04 LTS xenial Ignored end of ESM support, was needs-triage

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Notes


mdeslaur

This is only an issue if using ruby < 3.2, so noble and higher are not affected.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
ruby-sinatra

Severity score breakdown

CVSS version:

Base score 2.7 · Low

Vector: 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

Base score 7.5 · High

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

Related Ubuntu Security Notices (USN)

Other references


Access our resources on patching vulnerabilities