Red Hat VEX
RHVEX-CVE-2025-61921
sinatra: Sinatra has ReDoS vulnerability in ETag header value generation
Details
A flaw was found in Sinatra. A Regular Expression Denial of Service (ReDoS) vulnerability can be triggered when parsing the If-Match and If-None-Match HTTP headers. A remote attacker can exploit this issue by sending a specially crafted header to an application endpoint that uses the etag method, causing a excessive CPU consumption and potentially resulting in a denial of service.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | pcs | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | pcs-snmp | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2025-61921
- https://bugzilla.redhat.com/show_bug.cgi?id=2403178
- https://www.cve.org/CVERecord?id=CVE-2025-61921
- https://nvd.nist.gov/vuln/detail/CVE-2025-61921
- https://bugs.ruby-lang.org/issues/19104
- https://github.com/sinatra/sinatra/issues/2120
- https://github.com/sinatra/sinatra/pull/1823
- https://github.com/sinatra/sinatra/pull/2121
- https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q