Skip to content
Fencer Vulns
medium 5.4

CVE-2024-21510 json

Sinatra vulnerable to Reliance on Untrusted Inputs in a Security Decision

published 2024-11-01 2 y ago modified 2026-09-10 1 mo ago also GHSA-hxx2-7vcw-mqr3 , EUVD-2024-3268

cvss
5.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 42%
public exploits
0
none known

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.

Patch / fix

  • rubygems sinatra 4.1.0
  • ruby-sinatra Debian 14, Debian 13 4.1.1-2

debian advisories DEBIAN-CVE-2024-21510

  • pcs RHEL 8 0.10.18-2.el8_10.3
  • pcs-snmp RHEL 8 0.10.18-2.el8_10.3

red hat advisories RHSA-2024:10987

  • pcs AlmaLinux 8 0.10.18-2.el8_10.3.alma.1
  • pcs-snmp AlmaLinux 8 0.10.18-2.el8_10.3.alma.1

almalinux advisories ALSA-2024:10987

  • pcs Rocky Linux 8 0.10.18-2.el8_10.3

rocky linux advisories RLSA-2024:10987

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-21510 updated cvss 5.4

sinatra: Open Redirect Vulnerability in Sinatra via X-Forwarded-Host Header

  • Red Hat 3scale API Management Platform 2 3scale-amp2/zync-rhel8, 3scale-amp2/backend-rhel8
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 7 pcs, pcs-snmp, python-clufter
    affected: no fix planned “Out of support scope”
  • Red Hat Satellite 6 rubygem-sinatra
    affected: no fix available “Fix deferred”
  • Red Hat Storage 3 rubygem-sinatra
    affected: no fix planned “Out of support scope”
  • 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
    fixed: vendor fix RHSA-2024:10987
  • Red Hat Enterprise Linux 9 pcs, pcs-snmp Red Hat Enterprise Linux 10 pcs
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
CNA 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHub 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
rubygems sinatra
<4.1.0
4.1.0

Affected products

  • n/a sinatra

Classification

Weakness
  • CWE-807 Reliance on Untrusted Inputs in a Security Decision

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.