Red Hat VEX
RHVEX-CVE-2024-21510
sinatra: Open Redirect Vulnerability in Sinatra via X-Forwarded-Host Header
Details
A flaw was found in Sinatra. This vulnerability allows an Open Redirect attack via the X-Forwarded-Host (XFH) header, potentially enabling Cache Poisoning or Server-Side Request Forgery (SSRF) when used in caching servers or reverse proxies.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | pcs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | pcs-snmp | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-clufter | All versions, no fix (out of support scope) |
References
- https://access.redhat.com/security/cve/CVE-2024-21510
- https://bugzilla.redhat.com/show_bug.cgi?id=2323117
- https://www.cve.org/CVERecord?id=CVE-2024-21510
- https://nvd.nist.gov/vuln/detail/CVE-2024-21510
- https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb%23L319
- https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb%23L323C1-L343C17
- https://github.com/sinatra/sinatra/pull/2010
- https://security.snyk.io/vuln/SNYK-RUBY-SINATRA-6483832