CVEfocus › CVE database › CVE-2024-21510

CVE-2024-21510

CVSS 5.4 MediumEPSS 0.9% (higher than 56% of CVEs)Published 2024-11-01Updated 2024-11-18Assigner: snyk

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.

CWE-807

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, RubyGems: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
5Fix pending
4Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04ruby-sinatraWill not fix
The patch itself appears to be a security feature that enables users to allow certain hosts in forwarded headers. The patch utilizes a dependency called…
UBUNTU-CVE-2024-21510
Ubuntu 22.04ruby-sinatraFix pendingUBUNTU-CVE-2024-21510
Ubuntu 20.04ruby-sinatraFix pendingUBUNTU-CVE-2024-21510
Ubuntu 18.04ruby-sinatraFix pendingUBUNTU-CVE-2024-21510
Ubuntu 16.04ruby-sinatraFix pendingUBUNTU-CVE-2024-21510
Debian 14ruby-sinatraFixed4.1.1-2DEBIAN-CVE-2024-21510
Debian 13ruby-sinatraFixed4.1.1-2DEBIAN-CVE-2024-21510
Debian 12ruby-sinatraFix pendingDEBIAN-CVE-2024-21510
Red Hat Enterprise Linux 10cockpit-ha-clusterNot affected
Red Hat Enterprise Linux 10pcsNot affected
Red Hat Enterprise Linux 10pcs-snmpNot affected
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Enterprise Linux 9pcs-snmpNot affected
Red Hat Enterprise Linux 8pcsFixed0:0.10.18-2.el8_10.3RHSA-2024:10987
Red Hat Enterprise Linux 8pcs-snmpFixed0:0.10.18-2.el8_10.3RHSA-2024:10987
Red Hat Enterprise Linux 7pcsWill not fix
Out of support scope
Red Hat Enterprise Linux 7pcs-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7python-clufterWill not fix
Out of support scope
AlmaLinux 8pcsFixed0.10.18-2.el8_10.3.alma.1ALSA-2024:10987
AlmaLinux 8pcs-snmpFixed0.10.18-2.el8_10.3.alma.1ALSA-2024:10987
Rocky Linux 8pcsFixed0:0.10.18-2.el8_10.3RLSA-2024:10987
RubyGems librarysinatraFixed4.1.0GHSA-hxx2-7vcw-mqr3

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.