{"id":"CVE-2025-61921","state":"PUBLISHED","title":"Sinatra has ReDoS vulnerability in ETag header value generation","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.","publishedAt":"2025-10-10T19:28:10.688Z","updatedAt":"2025-10-10T20:54:47.627Z","severity":{"score":2.7,"label":"Low","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["sinatra sinatra"],"affected":[{"vendor":"sinatra","product":"sinatra","versions":[{"version":"< 4.2.0","status":"affected"}]}],"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"],"weaknesses":["CWE-1333"],"ingestedAt":"2026-10-29T20:09:48.677Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/61xxx/CVE-2025-61921.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-61921","state":"PUBLISHED","datePublished":"2025-10-10T19:28:10.688Z","dateUpdated":"2025-10-10T20:54:47.627Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-10-03T22:21:59.615Z"},"containers":{"cna":{"title":"Sinatra has ReDoS vulnerability in ETag header value generation","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"sinatra","product":"sinatra","versions":[{"version":"< 4.2.0","status":"affected"}]}],"references":[{"url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q","name":"https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sinatra/sinatra/issues/2120","name":"https://github.com/sinatra/sinatra/issues/2120","tags":["x_refsource_MISC"]},{"url":"https://github.com/sinatra/sinatra/pull/1823","name":"https://github.com/sinatra/sinatra/pull/1823","tags":["x_refsource_MISC"]},{"url":"https://github.com/sinatra/sinatra/pull/2121","name":"https://github.com/sinatra/sinatra/pull/2121","tags":["x_refsource_MISC"]},{"url":"https://bugs.ruby-lang.org/issues/19104","name":"https://bugs.ruby-lang.org/issues/19104","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2.7,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1333","lang":"en","description":"CWE-1333: Inefficient Regular Expression Complexity","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-10-10T19:28:10.688Z"},"source":{"advisory":"GHSA-mr3q-g2mv-mr4q","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-10-10T20:54:24.202335Z","id":"CVE-2025-61921","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-10T20:54:47.627Z"}}]}}}