Vulnerability · Published Nov 1, 2024 · Assigned by snyk

CVE-2024-21510

Medium 5.4

In plain English

A medium-severity security flaw in sinatra. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.5%top 57.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pcs0.10.18-2.el8_10.3.alma.1ALSA-2024:10987
AlmaLinux:8pcs-snmp0.10.18-2.el8_10.3.alma.1ALSA-2024:10987
Debian:12ruby-sinatrano fix listedDEBIAN-CVE-2024-21510
Debian:13ruby-sinatra4.1.1-2DEBIAN-CVE-2024-21510
Debian:14ruby-sinatra4.1.1-2DEBIAN-CVE-2024-21510
Rocky Linux:8pcs0:0.10.18-2.el8_10.3RLSA-2024:10987
RubyGemssinatra4.1.0GHSA-hxx2-7vcw-mqr3
Ubuntu:22.04:LTSruby-sinatrano fix listedUBUNTU-CVE-2024-21510
Ubuntu:24.04:LTSruby-sinatrano fix listedUBUNTU-CVE-2024-21510

Affected products (as reported)

VendorProductVersions
n/a sinatra 0.0.0 – before *

Weakness: CWE-807 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P

References