cve.bz

CVE-2024-21510

5.4 mediumEPSS 0.5%Fix available

Medium (5.4). EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in sinatra 4.1.0.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-11-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-807 Reliance on Untrusted Inputs in a Security Decision
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-21510 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-21510?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-21510?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-21510 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hxx2-7vcw-mqr3RubyGemssinatra<4.1.04.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ruby-sinatrano fix listedDEBIAN-CVE-2024-21510
Debian13, 14ruby-sinatra4.1.1-2DEBIAN-CVE-2024-21510
Ubuntu22.04:LTS, 24.04:LTS, Pro:16.04:LTS and 2 moreruby-sinatrano fix listedUBUNTU-CVE-2024-21510
Red Hatenterprise_linux:8::highavailability, enterprise_linux:8::resilientstoragepcs, pcs-snmp0:0.10.18-2.el8_10.3RHSA-2024:10987
AlmaLinux8pcs, pcs-snmp0.10.18-2.el8_10.3.alma.1ALSA-2024:10987
Rocky Linux8pcs0:0.10.18-2.el8_10.3RLSA-2024:10987

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8pcs-0:0.10.18-2.el8_10.3Fixed 2024-12-12RHSA-2024:10987
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Affected
Red Hat Enterprise Linux 10pcsNot affected
Red Hat Enterprise Linux 7pcsOut of support scope
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Satellite 6rubygem-sinatraFix deferred
Red Hat Storage 3rubygem-sinatraOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-21510.

References

Check your stackJSON