cve.bz

CVE-2025-61921 sinatrarb sinatra

2.7 lowExploit referenceEPSS 0.5%Fix available

Low (2.7) in sinatrarb sinatra. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in sinatra 4.2.0.

On this page
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.

Severity

CVSS 4.0

2.7 low
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-10-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-61921 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-61921?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-61921?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-61921 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sinatrarb:sinatrabefore 4.2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mr3q-g2mv-mr4qRubyGemssinatra<4.2.04.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ruby-sinatra3.0.5-3+deb12u1DEBIAN-CVE-2025-61921
Debian13ruby-sinatrano fix listedDEBIAN-CVE-2025-61921
Debian14ruby-sinatra4.2.1-1DEBIAN-CVE-2025-61921
Ubuntu26.04:LTSruby-sinatra4.2.1-1UBUNTU-CVE-2025-61921
UbuntuPro:16.04:LTSruby-sinatra1.4.7-3ubuntu0.1~esm3UBUNTU-CVE-2025-61921
UbuntuPro:18.04:LTSruby-sinatra1.4.8-1ubuntu0.1~esm3UBUNTU-CVE-2025-61921
UbuntuPro:22.04:LTSruby-sinatra2.0.8.1-2+deb11u1ubuntu0.1~esm1UBUNTU-CVE-2025-61921

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw can only be exploited in applications using the etag method to generate a response and if they are using Ruby below version 3.2, limiting the exposure of this issue.

The most likely security impact of this vulnerability is an unexpected amount of time to parse the If-Match and If-None-Match HTTP headers, potentially resulting in a degraded application performance but not completely deny service to legitimate users. Due to this reason, this flaw has been rated with a moderate severity.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp21/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp22/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp24/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp25/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp26/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel7Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Will not fix
Red Hat Enterprise Linux 10pcsNot affected
Red Hat Enterprise Linux 7pcsNot affected
Red Hat Enterprise Linux 8pcsAffected
Red Hat Enterprise Linux 9pcsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-61921.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON