Live threats

All CVEs / Sinatrarb

CVE-2022-45442Sinatrarb Sinatra

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
1.0%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Nov 28, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-494
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sinatra.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems sinatra ≥ 3.0 < 3.0.4 3.0.4 gem "sinatra", ">= 3.0.4"
RubyGems sinatra ≥ 2.0.0 < 2.2.3 2.2.3 gem "sinatra", ">= 2.2.3"

Per OSV / GitHub Advisories (GHSA-2x8x-jmrp-phxw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sinatrarbsinatra≥ 2.0.0 < 2.2.3
sinatrarbsinatra≥ 3.0.0 < 3.0.4
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.