CVE-2022-45442Sinatrarb Sinatra
High 8.8 No auth needed
Follow: this CVE · Sinatrarb · Sinatrarb Sinatra We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Sinatra.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| sinatrarb | sinatra | ≥ 2.0.0 < 2.2.3 |
| sinatrarb | sinatra | ≥ 3.0.0 < 3.0.4 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Not Applicable
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- www.blackhat.com Exploit Third Party Advisory
- lists.debian.org