{"schema_version":"1.7.3","id":"GHSA-2x8x-jmrp-phxw","published":"2022-11-30T21:18:34Z","modified":"2026-02-04T02:35:49.068446Z","aliases":["CVE-2022-45442"],"related":["CVE-2022-45442"],"summary":"Sinatra vulnerable to Reflected File Download attack","details":"### Description\nAn 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.\n\n### References\n* https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf\n* https://github.com/advisories/GHSA-8x94-hmjh-97hq","affected":[{"package":{"name":"sinatra","ecosystem":"RubyGems","purl":"pkg:gem/sinatra"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.0.4"}]}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-2x8x-jmrp-phxw/GHSA-2x8x-jmrp-phxw.json"}},{"package":{"name":"sinatra","ecosystem":"RubyGems","purl":"pkg:gem/sinatra"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.2.3"}]}],"versions":["2.0.0","2.0.1","2.0.1.rc1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.8.1","2.1.0","2.2.0","2.2.1","2.2.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-2x8x-jmrp-phxw/GHSA-2x8x-jmrp-phxw.json"}}],"references":[{"type":"WEB","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":"WEB","url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-45442.yml"},{"type":"PACKAGE","url":"https://github.com/sinatra/sinatra"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html"},{"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"}],"database_specific":{"cwe_ids":["CWE-494"],"github_reviewed":true,"github_reviewed_at":"2022-11-30T21:18:34Z","nvd_published_at":"2022-11-28T21:15:00Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}