Vulnerability
CVE-2024-21510
Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host (XFH) header. When making a request to a method with redirect applied, it is possible to trigger an Open Redirect Attack by inserting an arbitrary address into this header. If used for caching purposes, such as with servers like Nginx, or as a reverse proxy, without handling the X-Forwarded-Host header, attackers can potentially exploit Cache Poisoning or Routing-based SSRF.
43 advisories report this vulnerability, across 10 ecosystems.
Advisories
-
ALAS2-2025-2853
Amazon Linux 2 2017.12 - ALAS2-2025-2853: medium priority package update for pcs
-
ALSA-2024:10987
Moderate: pcs security update
- CGA-3xgq-646q-v463
- CGA-4gxw-42c4-g6fv
- CGA-4q92-78x4-986c
- CGA-5829-h345-8h9v
- CGA-59c5-7wmf-8x43
- CGA-5jrh-2285-8xmv
- CGA-5pf4-fc4p-j87w
- CGA-6rr6-3w59-f637
- CGA-7jm8-ppph-jqhg
- CGA-8j4v-88vc-9v66
- CGA-9j29-hpxw-v26v
- CGA-cjp5-cgp4-vhr6
- CGA-cw2m-37vh-4pgx
- CGA-fq6q-q5f5-x922
- CGA-fqmr-6h4f-5c74
- CGA-gvmv-79cq-g2m4
- CGA-j99x-mf59-7vm6
- CGA-jfj9-73wq-52f6
- CGA-jq6c-x5g9-32xf
- CGA-m757-c4r5-3pc8
- CGA-m969-x246-9pwr
- CGA-mv78-q7c2-4q5g
- CGA-p397-q968-35v8
- CGA-p88p-c9c4-jjv9
- CGA-q8vv-xq83-q4q2
- CGA-qmc3-c967-x4fp
- CGA-qrwr-77jv-2g9p
- CGA-r7h6-pmmm-m573
- CGA-r9h9-mm7v-vg9q
- CGA-rg6v-4h39-rcvj
- CGA-vwhf-8pvx-qxfp
- CGA-w6fj-jvq5-mw9x
- CGA-xpjh-x8wp-q2c8
- CGA-xqcv-j6vp-9qfx
-
DEBIAN-CVE-2024-21510
Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host (XFH) header. When making a request to a method with redirect applied, it is…
-
ELSA-2024-10987
ELSA-2024-10987: pcs security update (MODERATE)
-
GHSA-hxx2-7vcw-mqr3
Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision
-
RHSA-2024:10987
Red Hat Security Advisory: pcs security update
-
RHVEX-CVE-2024-21510
sinatra: Open Redirect Vulnerability in Sinatra via X-Forwarded-Host Header
-
RLSA-2024:10987
Moderate: pcs security update
-
UBUNTU-CVE-2024-21510
Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the X-Forwarded-Host (XFH) header. When making a request to a method with redirect applied, it is…
References
- 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