# CVE-2022-45442: Sinatra vulnerable to Reflected File Download attack

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-28T00:00:00.000Z
- Modified: 2026-06-17T05:10:09.490Z
- Also known as: GHSA-2x8x-jmrp-phxw
- Weaknesses: CWE-494
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- sinatra sinatra: >= 3.0, < 3.0.4; >= 2.0, < 2.2.3
- sinatra (RubyGems): from 3.0 before 3.0.4; from 2.0.0 before 2.2.3
- sinatrarb sinatra: from 2.0.0 before 2.2.3; from 3.0.0 before 3.0.4
- debian debian_linux: 10.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <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://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw> (third-party-advisory, web)
- <https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b> (patch, third-party-advisory, web)
- <https://github.com/advisories/GHSA-8x94-hmjh-97hq> (advisory, not-applicable)
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html> (mailing-list, 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)

## Sources

- CVE List: [CVE-2022-45442](https://www.cve.org/CVERecord?id=CVE-2022-45442), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-2x8x-jmrp-phxw](https://github.com/advisories/GHSA-2x8x-jmrp-phxw), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2022-45442](https://nvd.nist.gov/vuln/detail/CVE-2022-45442), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-45442 · Whole record: https://cve.day/CVE-2022-45442.json · Rebuilt by cve.day 2026-11-25T22:58:17.098Z
