Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 2 fixed, 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | sinatra | 0.0.0 and later | — | No fix listed | CNA |
| — | sinatra (RubyGems) | before 4.1.0 | 4.1.0 | Patch available | GHSA-hxx2-7vcw-mqr3 |
- sinatra Vendor— Affected 0.0.0 and later Fixed in — No fix listed CNA
- sinatra (RubyGems) Vendor— Affected before 4.1.0 Fixed in 4.1.0 Patch available GHSA-hxx2-7vcw-mqr3
Remediation
- Fix · GHSA-hxx2-7vcw-mqr3 sinatra (RubyGems) Fixed in 4.1.0 Advisory →
Red Hat 1 advisory
- RHSA-2024:10987 Released 2024-12-12 · Red Hat rating Moderatepcs security update
- Red Hat Enterprise Linux HighAvailability (v. 8) pcs-0.10.18-2.el8_10.3, pcs-snmp-0.10.18-2.el8_10.3
- Red Hat Enterprise Linux ResilientStorage (v. 8) pcs-0.10.18-2.el8_10.3, pcs-snmp-0.10.18-2.el8_10.3
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Red Hat Storage 3 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux HighAvailability (v. 8) | Fixed | RHSA-2024:10987 |
| Red Hat Enterprise Linux ResilientStorage (v. 8) | Fixed | RHSA-2024:10987 |
Not affected: 2 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21510
- 2026-10-03 Alias added: GHSA-hxx2-7vcw-mqr3
References
Advisory 2
Other 8
- 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://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
- https://github.com/sinatra/sinatra/blob/main/CHANGELOG.md#410--2024-11-18
Sources
- CVE-2024-21510 · CVE Program
- CVE-2024-21510 · NVD
- FIRST EPSS
- GHSA-hxx2-7vcw-mqr3 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21510 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences