Back
CVE-2022-45442
Sinatra vulnerable to Reflected File Download attack
High8.8EPSS 0.69%
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.69% · top 47% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemssinatraGHSA-2x8x-jmrp-phxw (opens in a new tab)
References (6)
- https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw (opens in a new tab)x_transferred
- https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b (opens in a new tab)x_transferred
- https://github.com/advisories/GHSA-8x94-hmjh-97hq (opens in a new tab)x_transferred
- https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf (opens in a new tab)x_transferred
- [debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update (opens in a new tab)mailing-listx_transferred
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2x8x-jmrp-phxw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-45442)Record last updated .