CVE catalog

CVE-2024-21510

ruby-sinatra: CVE-2024-21510

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.49% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-sinatrasid4.2.1-5fixed
Debianruby-sinatraforky4.2.1-5fixed
Debianruby-sinatratrixie4.1.1-5fixed
Debianruby-sinatrabookworm3.0.5-3+deb12u1vulnerable
Ubunturuby-sinatrapro2.0.5-4ubuntu1vulnerable
Ubunturuby-sinatrapro2.0.8.1-1vulnerable
Ubunturuby-sinatrapro2.0.8.1-1ubuntu0.1~esm2vulnerable
Ubunturuby-sinatrapro2.0.8.1-1ubuntu0.1~esm3vulnerable
Ubunturuby-sinatra22.042.0.8.1-2vulnerable
Ubunturuby-sinatra22.042.0.8.1-2+deb11u1build0.22.04.1vulnerable
Ubunturuby-sinatra24.043.0.5-3vulnerable
Ubunturuby-sinatra24.043.0.5-3ubuntu1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-sinatrasourcesid4.1.1-2not yet assignedNot reported[1087290]
Debianruby-sinatrasourceforky4.1.1-2not yet assignedNot reported[1087290]
Debianruby-sinatrasourcetrixie4.1.1-2not yet assignedNot reported[1087290]
Debianruby-sinatrasourcebookworm(unfixed)not yet assignedNot reported[1087290]

[Debian bug #1087290]

Notes

[bookworm] ruby-sinatra: Minor issue, too intrusive to backport

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [ruby-sinatra]

    Details (2)
    • 3.0.5-3+deb12u1 · all · bookworm

      Affected

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

    • 3.0.5-3+deb12u1 · all · bookworm

      Affected

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

  • [ruby-sinatra]Affected
    Details (2)
    • 3.0.5-3+deb12u1 · all · bookworm

      Affected

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

    • 3.0.5-3+deb12u1 · all · bookworm

      Affected

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

  • Source package: [ruby-sinatra]

    Details (2)
    • 3.0.5-3+deb12u1 · all · bookworm

      Affected

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

    • 3.0.5-3+deb12u1 · all · bookworm

      Affected

      dsa · ruby-sinatra · debian · bookworm; dsa · ruby-sinatra · debian · 12

[Debian 13 (Trixie)]

  • Source package: [ruby-sinatra]

    Details (2)
    • 4.1.1-5 · all · trixie

      Fixed · Fixed: 4.1.1-2

      dsa · ruby-sinatra · debian · 13

    • 4.1.1-5 · all · trixie

      Fixed · Fixed: 4.1.1-2

      dsa · ruby-sinatra · debian · 13

  • Details (2)
    • 4.1.1-5 · all · trixie

      Fixed · Fixed: 4.1.1-2

      dsa · ruby-sinatra · debian · 13

    • 4.1.1-5 · all · trixie

      Fixed · Fixed: 4.1.1-2

      dsa · ruby-sinatra · debian · 13

  • Source package: [ruby-sinatra]

    Details (2)
    • 4.1.1-5 · all · trixie

      Fixed · Fixed: 4.1.1-2

      dsa · ruby-sinatra · debian · 13

    • 4.1.1-5 · all · trixie

      Fixed · Fixed: 4.1.1-2

      dsa · ruby-sinatra · debian · 13

Observed:

References