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

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-11-28 · Modified: 2025-11-04
- Aliases: MGASA-2023-0029, RHSA-2023:0393, RHSA-2023:0427, RHSA-2023:0506, RHSA-2023:0527, RHSA-2023:0855, RHSA-2023:0857, RHSA-2023:0974, UBUNTU-CVE-2022-45442, DEBIAN-CVE-2022-45442, DLA-3264-1, GHSA-2x8x-jmrp-phxw
- Record: https://cvemate.com/vulnerability/CVE-2022-45442 · JSON: https://cvemate.com/vulnerability/CVE-2022-45442/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.868%, percentile 59.987%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian ruby-sinatra (Debian): \< 2.0.5-4+deb10u2 \| \< 3.0.5-2
- ubuntu ruby-sinatra (Ubuntu): \< 1.4.7-3ubuntu0.1~esm2 \| \< 1.4.8-1ubuntu0.1~esm2 \| \< 2.0.8.1-2+deb11u1build0.22.04.1
- debian debian\_linux: 10.0
- RubyGems sinatra (RubyGems): ≥ 3.0, \< 3.0.4 \| ≥ 2.0.0, \< 2.2.3
- mageia ruby-sinatra (Mageia): \< 2.0.8.1-1.2.mga8
- redhat pcs (Red Hat): \< 0:0.10.4-6.el8\_2.4 \| \< 0:0.10.12-6.el8\_6.3 \| \< 0:0.10.8-1.el8\_4.3 \| \< 0:0.11.1-10.el9\_0.3 \| \< 0:0.10.14-5.el8\_7.2 \| \< 0:0.10.2-4.el8\_1.3 \| \< 0:0.11.3-4.el9\_1.2
- redhat pcs-snmp (Red Hat): \< 0:0.10.4-6.el8\_2.4 \| \< 0:0.10.12-6.el8\_6.3 \| \< 0:0.10.8-1.el8\_4.3 \| \< 0:0.11.1-10.el9\_0.3 \| \< 0:0.10.14-5.el8\_7.2 \| \< 0:0.10.2-4.el8\_1.3 \| \< 0:0.11.3-4.el9\_1.2
- sinatra sinatra: ≥ 3.0, \< 3.0.4 \| ≥ 2.0, \< 2.2.3
- sinatrarb sinatra: ≥ 2.0.0, \< 2.2.3 \| ≥ 3.0.0, \< 3.0.4

## References (first 20 of 33)

- <https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw>
- <https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b>
- <https://github.com/advisories/GHSA-8x94-hmjh-97hq>
- <https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf>
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html>
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html>
- <https://advisories.mageia.org/MGASA-2023-0029.html>
- <https://bugs.mageia.org/show_bug.cgi?id=31416>
- <https://www.debian.org/lts/security/2023/dla-3264>
- <https://access.redhat.com/errata/RHSA-2023:0393>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2153363>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_0393.json>
- <https://access.redhat.com/security/cve/CVE-2022-45442>
- <https://www.cve.org/CVERecord?id=CVE-2022-45442>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45442>
- <https://access.redhat.com/errata/RHSA-2023:0427>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_0427.json>
- <https://access.redhat.com/errata/RHSA-2023:0506>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_0506.json>

---

Data as of 2026-12-05T07:50:42.463Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
