Skip to content
OpenAdvisories
Medium · 5.4 CVE-2024-21510 EUVD-2024-3268GHSA-hxx2-7vcw-mqr3

Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision

Published Nov 1, 2024 · Updated Nov 18, 2024 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— sinatra 0.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-sinatra 4.1.1-2 —
Debian 13 ruby-sinatra 4.1.1-2 —
Debian 12 ruby-sinatra No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS ruby-sinatra No fix yet —
Ubuntu 22.04 LTS ruby-sinatra No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ruby-sinatra No fix yet —
Ubuntu Pro 18.04 LTS ruby-sinatra No fix yet —
Ubuntu Pro 16.04 LTS ruby-sinatra No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 pcs +1 0.10.18-2.el8_10.3 RHSA-2024:10987

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 pcs +1 0.10.18-2.el8_10.3.alma.1 ALSA-2024:10987

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 pcs 0.10.18-2.el8_10.3 RLSA-2024:10987

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 pcs +1 0.9.169-3.amzn2.3.0.5 ALAS2-2025-2853

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 pcs +1 0.10.18-2.0.1.el8_10.3 ELSA-2024-10987

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gitlab-cng-18.2 No fix yet —
Wolfi rolling logstash-8-with-output-opensearch 8.16.0-r2 —
Wolfi rolling ruby3.2-sinatra +1 4.1.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems sinatra < 4.1.0 4.1.0 GHSA-hxx2-7vcw-mqr3

Advisories 5

References