# CVE-2025-61921: Sinatra has ReDoS vulnerability in ETag header value generation

- Priority: **Routine**
- Reason: Not severe (CVSS 2.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-10 · Modified: 2025-10-10
- Aliases: UBUNTU-CVE-2025-61921, DEBIAN-CVE-2025-61921, CGA-972v-j928-p2x4, CGA-rxgv-fxx5-mp2c, CGA-289h-hj5f-cp98, CGA-2pxh-wf9v-4fp5, CGA-3h62-78rr-w75v, CGA-3r3x-xw77-6893, CGA-3v7m-m5v4-2j8v, CGA-525x-4cm4-2fr2, CGA-5jxv-7m52-h438, CGA-5pg9-pjgh-6vgj, CGA-5wpp-226v-xr35, CGA-656c-cjmj-qqgq, CGA-6g2j-hx2g-vqq5, CGA-6jf5-33q7-hmh5, CGA-754p-2723-682q, CGA-759v-7xfh-wgv6, CGA-7677-p2gv-8w54, CGA-7m64-r5pw-78rg, CGA-7p37-jj6j-wfv2, CGA-868r-c6cg-9388, CGA-887m-7f4h-v5g4, CGA-8922-pvwq-93h9, CGA-89g8-4992-8pr2, CGA-93x2-428j-jm9h, CGA-9c62-6798-c4qr, CGA-9f63-vwvg-jcxp, CGA-9gxg-m4gc-7qjw, CGA-9mf4-97ff-425p, CGA-9r2r-hvqc-jcgm, CGA-9rmf-j94q-5c9f, CGA-c2gh-h8gg-rp69, CGA-c2jg-qvwg-w82f, CGA-chq8-wg58-qq64, CGA-cwfx-vq5v-8gcx, CGA-ffww-w3qw-28x4, CGA-fg66-2f63-j83m, CGA-fj7x-89gq-q2qg, CGA-fwhf-9h8h-cp27, CGA-g9p8-cwf3-9w7p, CGA-gqfj-x3hh-f5xg, CGA-gw4q-x7qx-r3v5, CGA-h2j6-c9rr-m9r8, CGA-h693-28gm-hrw6, CGA-h6jc-jxr3-q3fr, CGA-hvpg-83cj-m8fx, CGA-j3gp-p269-g93q, CGA-j3rp-q3x9-xvhc, CGA-j85p-gp2g-ggrq, CGA-jm4h-9xwr-25pv, CGA-m766-rx3x-gc22, CGA-m836-grj8-m94w, CGA-mmx9-6599-hwh5, CGA-mrm5-6gc5-h8vj, CGA-p2qg-rvcp-f3rg, GHSA-mr3q-g2mv-mr4q, CGA-q22v-9xfj-f8pf, CGA-q57w-83x5-8x64, CGA-q8hf-48m5-9cg9, CGA-qf3g-ggxr-9wp7, CGA-qgc8-pjph-7269, CGA-qr9g-x3xv-jxp9, CGA-qw2j-35pf-gw67, CGA-r3xm-3fjg-pq87, CGA-r556-r4jf-g5h8, CGA-rgf9-2wm7-pv99, CGA-rjx6-c6h7-jx5p, CGA-rw5p-9mx9-mpqr, CGA-rx4q-c2w3-fwf5, CGA-v462-5mvw-ccp7, CGA-v7j3-r7jx-2c9p, CGA-v9vw-2q83-gwvw, CGA-w6vg-j37c-63p7, CGA-w94r-crr4-v4x4, CGA-wfgx-wj22-wgqc, CGA-wmmf-9hjq-vhg7, CGA-wqwr-2gjw-wc2m, CGA-x4vg-4rr8-gx73, CGA-xcc9-h4gv-4372, CGA-xm3v-mr36-7gwp, USN-8624-1
- Record: https://cvemate.com/vulnerability/CVE-2025-61921 · JSON: https://cvemate.com/vulnerability/CVE-2025-61921/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.495%, percentile 44.094%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 45)

- chainguard gitlab-cng-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-cng-18.9 (Chainguard): \< 18.9.1-r0
- chainguard gitlab-exporter-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.11 (Chainguard): \< 18.11.5-r2
- chainguard gitlab-exporter-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.9 (Chainguard): \< 18.9.5-r0
- chainguard gitlab-exporter-19.0 (Chainguard): \< 19.0.2-r1
- chainguard gitlab-exporter-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-19.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-logger-18.2 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17 (Chainguard): \< 8.17.10-r4
- chainguard logstash-8.17-compat (Chainguard): \< 8.17.10-r4
- chainguard logstash-8.17-env2yaml (Chainguard): \< 8.17.10-r4
- chainguard logstash-8.17-iamguarded-compat (Chainguard): \< 8.17.10-r4
- chainguard logstash-8.17-with-output-opensearch (Chainguard): \< 8.17.10-r4
- chainguard logstash-8.18 (Chainguard): \< 8.18.8-r2
- chainguard logstash-8.18-compat (Chainguard): \< 8.18.8-r2

## References

- <https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q>
- <https://github.com/sinatra/sinatra/issues/2120>
- <https://github.com/sinatra/sinatra/pull/1823>
- <https://github.com/sinatra/sinatra/pull/2121>
- <https://bugs.ruby-lang.org/issues/19104>
- <https://ubuntu.com/security/CVE-2025-61921>
- <https://www.cve.org/CVERecord?id=CVE-2025-61921>
- <https://ubuntu.com/security/notices/USN-8624-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-61921>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61921.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61921>
- <https://github.com/sinatra/sinatra/commit/3fe8c38dc405586f7ad8f2ac748aa53e9c3615bd>
- <https://github.com/sinatra/sinatra/commit/8ff496bd4877520599e1479d6efead39304edceb>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2025-61921.yml>
- <https://github.com/sinatra/sinatra>

---

Data as of 2026-12-05T07:37:04.859Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
