{"id":"CVE-2022-45442","aliases":["GHSA-2x8x-jmrp-phxw"],"url":"https://o3.security/vulnerability/CVE-2022-45442","summary":"Sinatra vulnerable to Reflected File Download attack","details":"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":"2022-11-28T00:00:00Z","modified":"2026-07-15T01:49:07.325829338Z","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"RubyGems","name":"sinatra","fixedVersion":"3.0.4"},{"ecosystem":"RubyGems","name":"sinatra","fixedVersion":"2.2.3"}],"fix":{"url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b","label":"sinatra/sinatra@ea8fc94"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html"},{"type":"WEB","url":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45442.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq"},{"type":"ADVISORY","url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45442"},{"type":"FIX","url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:07.325829338Z"}}