CVE catalog

CVE-2025-61921

ruby-sinatra: CVE-2025-61921

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.50% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-sinatrasid4.2.1-5fixed
Debianruby-sinatraforky4.2.1-5fixed
Debianruby-sinatratrixie4.1.1-5vulnerable
Debianruby-sinatrabookworm3.0.5-3+deb12u1fixed
CpesinatraNot reported4.2.0fixed
Ubunturuby-sinatrapro2.0.8.1-2vulnerable
Ubunturuby-sinatrapro2.0.8.1-2+deb11u1build0.22.04.1vulnerable
Ubunturuby-sinatrapro2.0.8.1-2+deb11u1ubuntu0.1~esm1fixed
Ubunturuby-sinatra26.044.1.1-5vulnerable
Ubunturuby-sinatra26.044.2.1-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-sinatrasourcesid4.2.1-1not yet assignedNot reported[1118290]
Debianruby-sinatrasourceforky4.2.1-1not yet assignedNot reported[1118290]
Debianruby-sinatrasourcetrixie(unfixed)not yet assignedNot reported[1118290]
Debianruby-sinatrasourcebookworm3.0.5-3+deb12u1not yet assignedNot reported[1118290]
CpesinatracpeNot reported4.2.0Not reportedNVD-CVE-2025-61921Not reported
Ubunturuby-sinatradebpro2.0.8.1-2+deb11u1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2025-61921Not reported
Ubunturuby-sinatradeb26.044.2.1-1Not reportedUBUNTU-CVE-2025-61921Not reported

[Debian bug #1118290]

Notes

[trixie] ruby-sinatra: Minor issue; only a problem together with Ruby < 3.2

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • Source package: [ruby-sinatra]

    Details (2)
    • 4.1.1-5 · all · trixie

      Affected

      dsa · ruby-sinatra · debian · 13

    • 4.1.1-5 · all · trixie

      Affected

      dsa · ruby-sinatra · debian · 13

  • [ruby-sinatra]Affected
    Details (2)
    • 4.1.1-5 · all · trixie

      Affected

      dsa · ruby-sinatra · debian · 13

    • 4.1.1-5 · all · trixie

      Affected

      dsa · ruby-sinatra · debian · 13

  • Source package: [ruby-sinatra]

    Details (2)
    • 4.1.1-5 · all · trixie

      Affected

      dsa · ruby-sinatra · debian · 13

    • 4.1.1-5 · all · trixie

      Affected

      dsa · ruby-sinatra · debian · 13

[Debian 12 (Bookworm)]

  • Source package: [ruby-sinatra]

    Details (2)
    • 3.0.5-3+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.5-3+deb12u1

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

    • 3.0.5-3+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.5-3+deb12u1

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

  • Details (2)
    • 3.0.5-3+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.5-3+deb12u1

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

    • 3.0.5-3+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.5-3+deb12u1

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

  • Source package: [ruby-sinatra]

    Details (2)
    • 3.0.5-3+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.5-3+deb12u1

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

    • 3.0.5-3+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.5-3+deb12u1

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

Observed:

References