# CVE-2024-21510

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-11-01 · Modified: 2024-11-18
- Aliases: RHSA-2024:10987, UBUNTU-CVE-2024-21510, DEBIAN-CVE-2024-21510, CGA-4q92-78x4-986c, CGA-5829-h345-8h9v, CGA-7jm8-ppph-jqhg, CGA-9j29-hpxw-v26v, CGA-fqmr-6h4f-5c74, CGA-j99x-mf59-7vm6, CGA-rg6v-4h39-rcvj, CGA-xqcv-j6vp-9qfx, CGA-3xgq-646q-v463, CGA-4gxw-42c4-g6fv, CGA-59c5-7wmf-8x43, CGA-5jrh-2285-8xmv, CGA-5pf4-fc4p-j87w, CGA-6rr6-3w59-f637, CGA-8j4v-88vc-9v66, CGA-cjp5-cgp4-vhr6, CGA-cw2m-37vh-4pgx, CGA-fq6q-q5f5-x922, CGA-gvmv-79cq-g2m4, 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, GHSA-hxx2-7vcw-mqr3, CGA-q8vv-xq83-q4q2, CGA-qmc3-c967-x4fp, CGA-qrwr-77jv-2g9p, CGA-r7h6-pmmm-m573, CGA-r9h9-mm7v-vg9q, CGA-vwhf-8pvx-qxfp, CGA-w6fj-jvq5-mw9x, CGA-xpjh-x8wp-q2c8
- Record: https://cvemate.com/vulnerability/CVE-2024-21510 · JSON: https://cvemate.com/vulnerability/CVE-2024-21510/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
- EPSS: 0.494%, percentile 43.982%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 26)

- chainguard gitlab-cng-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-cng-18.9 (Chainguard): \< 18.9.1-r0
- chainguard gitlab-exporter-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.11 (Chainguard): \< 18.11.5-r2
- chainguard gitlab-exporter-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.9 (Chainguard): \< 18.9.5-r0
- chainguard gitlab-exporter-19.0 (Chainguard): \< 19.0.0-r3
- chainguard gitlab-exporter-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-19.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-logger-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-logger-18.2 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.16.0-r2
- chainguard ruby3.2-sinatra (Chainguard): \< 4.1.0-r0
- chainguard ruby3.3-sinatra (Chainguard): \< 4.1.0-r0
- wolfi gitlab-cng-18.2 (Wolfi): All versions (No fix recorded)
- wolfi logstash-8-with-output-opensearch (Wolfi): \< 8.16.0-r2
- wolfi ruby3.2-sinatra (Wolfi): \< 4.1.0-r0

## References (first 20 of 21)

- <https://security.snyk.io/vuln/SNYK-RUBY-SINATRA-6483832>
- <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://access.redhat.com/errata/RHSA-2024:10987>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2323117>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_10987.json>
- <https://access.redhat.com/security/cve/CVE-2024-21510>
- <https://www.cve.org/CVERecord?id=CVE-2024-21510>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21510>
- <https://ubuntu.com/security/CVE-2024-21510>
- <https://github.com/sinatra/sinatra/pull/2053#issuecomment-2486996349>
- <https://github.com/rack/rack/commit/58eed3015d89249a3c48d144bbeabb01f69ea696>
- <https://security-tracker.debian.org/tracker/CVE-2024-21510>
- <https://github.com/advisories/GHSA-hxx2-7vcw-mqr3>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2024-21510.yml>
- <https://github.com/sinatra/sinatra>
- <https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb#L319>
- <https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb#L323C1-L343C17>

---

Data as of 2026-12-05T08:09:14.277Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
