CVE-2024-21510
published medium CVSS 3.1 · 5.4sinatra: Open Redirect Vulnerability in Sinatra via X-Forwarded-Host Header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | sinatra0.0.0 and later | Affected | Not stated | snyk |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2853 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | pcs | Advisory build | 0.10.18-2.el8_10.3.alma.1 | ALSA-2024:10987 |
| Oracle Linux | 8 | pcsaarch64 | Advisory build | 0:0.10.18-2.0.1.el8_10.3 | ELSA-2024-10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcsaarch64 | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Amazon Linux | AL2 | pcsaarch64 | Listed in advisory | Not stated | ALAS2-2025-2853 |
| Rocky Linux | 8 | pcsaarch64 | Listed in advisory | Not stated | RLSA-2024:10987 |
| AlmaLinux | 8 | pcs-snmp | Advisory build | 0.10.18-2.el8_10.3.alma.1 | ALSA-2024:10987 |
Show 18 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | pcsx86_64 | Advisory build | 0:0.10.18-2.0.1.el8_10.3 | ELSA-2024-10987 |
| Oracle Linux | 8 | pcs-snmpaarch64 | Advisory build | 0:0.10.18-2.0.1.el8_10.3 | ELSA-2024-10987 |
| Oracle Linux | 8 | pcs-snmpx86_64 | Advisory build | 0:0.10.18-2.0.1.el8_10.3 | ELSA-2024-10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcsppc64le | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcss390x | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcssrc | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcsx86_64 | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpaarch64 | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpppc64le | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmps390x | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Red Hat Enterprise Linux | RHEL-8 | pcs-snmpx86_64 | Advisory build | 0.10.18-2.el8_10.3 | RHSA-2024:10987 |
| Amazon Linux | AL2 | pcsi686 | Listed in advisory | Not stated | ALAS2-2025-2853 |
| Amazon Linux | AL2 | pcssrc | Listed in advisory | Not stated | ALAS2-2025-2853 |
| Amazon Linux | AL2 | pcsx86_64 | Listed in advisory | Not stated | ALAS2-2025-2853 |
| Rocky Linux | 8 | pcssrc | Listed in advisory | Not stated | RLSA-2024:10987 |
| Rocky Linux | 8 | pcsx86_64 | Listed in advisory | Not stated | RLSA-2024:10987 |
| Rocky Linux | 8 | pcs-snmpaarch64 | Listed in advisory | Not stated | RLSA-2024:10987 |
| Rocky Linux | 8 | pcs-snmpx86_64 | Listed in advisory | Not stated | RLSA-2024:10987 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | sinatra | 0.0.0 and later (affected · semver) | snyk · cna |
Weaknesses
1- CWE-807 Reliance on Untrusted Inputs in a Security Decision
References
4- 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
Provider assertions
2snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5da26c90ce2f05e84085f2e3ca41e13d1c57aa5ca6c39c3e2622bef7a0d355b9
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record