Skip to content
Heist/ feed
Back to feed
HighFix available

ruby-sinatra — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2025-61921

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.

Products
ruby-sinatra
Affected versions
3.0.5-3, 4.1.1-5, 4.1.1-6, 4.2.1-1, 4.2.1-2, 4.2.1-3, 4.2.1-4, 4.2.1-5
Fixed versions
3.0.5-3+deb12u1, 4.2.1-1
CVEs
CVE-2025-61921
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 23:00 UTC · Revision 1

Source evidence

DEBIAN-CVE-2025-61921

core-osv · Original source

Published 10 Oct 2025, 20:15 UTC

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.

osv:DEBIAN-CVE-2025-61921

ruby-sinatra

Fixed versions: 3.0.5-3+deb12u1

ruby-sinatra

Fixed versions: Not specified

ruby-sinatra

Fixed versions: 4.2.1-1

Complete source record
{
  "id": "f51cdf1915b25e30e93eb36a76adce31c31cbd8a193ae3170056abfb3215d300",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-61921",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2025-61921",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2025-61921",
    "products": [
      {
        "name": {
          "value": "ruby-sinatra",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.0.5-3+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.0.5-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-sinatra",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.1.1-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.1-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.2.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.2.1-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.2.1-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.2.1-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.2.1-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-sinatra",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.2.1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4.1.1-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.1-6",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2025-61921",
      "aliases": [
        "DEBIAN-CVE-2025-61921"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.0.5-3+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-sinatra",
            "purl": "pkg:deb/debian/ruby-sinatra?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "3.0.5-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61921.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-sinatra",
            "purl": "pkg:deb/debian/ruby-sinatra?arch=source&distro=trixie",
            "ecosystem": "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",
            "4.2.1-5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61921.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.2.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-sinatra",
            "purl": "pkg:deb/debian/ruby-sinatra?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "4.1.1-5",
            "4.1.1-6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61921.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T17:47:32.516229901Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-61921"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2025-61921"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-61921",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 417518,
  "published_at": "2025-10-10T20:15:38.067+00:00"
}