{"id":"CVE-2024-21510","published":"2024-11-01T05:00:04Z","modified":"2024-11-18T12:19:21Z","title":"Versions of the package sinatra from 0.0.0 are vulnerable to Reliance on Untrusted Inputs in a Security Decision via…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00856,"percentile":0.55842,"provenance":"source"},"cwes":[{"id":"CWE-807","name":"Reliance on Untrusted Inputs in a Security Decision"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-RUBY-SINATRA-6483832","tags":[]},{"url":"https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb%23L319","tags":[]},{"url":"https://github.com/sinatra/sinatra/blob/b626e2d82c23b4fde0b51782fd32ca27ccde1d1a/lib/sinatra/base.rb%23L323C1-L343C17","tags":[]},{"url":"https://github.com/sinatra/sinatra/pull/2010","tags":[]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":11.17},{"name":"CVSS severity","points":3.78}]},"affectedVersions":[{"vendor":"n/a","product":"sinatra","versions":[">= 0.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-01T14:19:38.275973Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"sinatra","vulnerableRanges":["<4.1.0"],"patched":["4.1.0"],"from":["GHSA-hxx2-7vcw-mqr3"],"provenance":"source"}],"summary":{"text":"The sinatra Ruby package (all versions from 0.0.0) trusts the X-Forwarded-Host request header in a security decision, which affects requests to methods that apply a redirect. An attacker who can send a request with a crafted X-Forwarded-Host header and get a victim to follow the resulting link can trigger an open redirect, and where caching or a reverse proxy uses that header without handling it, cache poisoning or routing-based SSRF may also be possible, requiring user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:05Z"},"euvd":{"id":"EUVD-2024-3268","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-11627","published":"2018-05-31","fixed":"2.0.2","kev":false},{"cve":"CVE-2022-29970","published":"2022-05-02","fixed":"2.2.0","kev":false},{"cve":"CVE-2022-45442","published":"2022-11-28","fixed":"3.0.4","kev":false},{"cve":"CVE-2024-21510","published":"2024-11-01","fixed":"4.1.0","kev":false},{"cve":"CVE-2025-61921","published":"2025-10-10","fixed":"4.2.0","kev":false,"link":{"from":"CVE-2024-21510","to":"CVE-2025-61921","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:sinatra","fromFixed":"4.1.0","toFixed":"4.2.0","daysApart":343}]}}],"package":"RubyGems:sinatra"}}