CVE-2022-45442
HIGH 8.8CVSS 3.1Sinatra vulnerable to Reflected File Download attack
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.
- Published
- 28 Nov 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-494
- Also known as
- GHSA-2x8x-jmrp-phxw
- Sources
- NVDJSONOSV GHSA-2x8x-jmrp-phxwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sinatrarb | sinatracpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.2.3 | 2.2.3 |
| NVD | sinatrarb | sinatracpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.4 | 3.0.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | RubyGems | sinatra | >= 3.0, < 3.0.4 | 3.0.4 |
| OSV | RubyGems | sinatra | >= 2.0.0, < 2.2.3 | 2.2.3 |
References
- https://github.com/advisories/GHSA-8x94-hmjh-97hq · Not Applicable, ADVISORY
- https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b · Patch, Third Party Advisory, WEB
- https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw · Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html · Mailing List, Third Party Advisory, WEB
- https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf · Exploit, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-45442 · ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-45442.yml · WEB
- https://github.com/sinatra/sinatra · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 28 Nov 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Nov 2022)