{"id":"CVE-2022-45442","aliases":["CVE-2022-45442","GHSA-2x8x-jmrp-phxw"],"related":[],"kind":"vulnerability","state":"published","title":"Sinatra vulnerable to Reflected File Download attack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"Sinatra es un lenguaje de dominio específico para crear aplicaciones web en Ruby. Se descubrió un problema en Sinatra 2.0 anterior a 2.2.3 y 3.0 anterior a 3.0.4. Una aplicación es vulnerable a un ataque de Reflected File Download (RFD) que establece el encabezado Content-Disposition de una respuesta cuando el nombre del archivo se deriva de una entrada proporcionada por el usuario. Las versiones 2.2.3 y 3.0.4 contienen parches para este problema.","source":"nvd"}],"published":"2022-11-28T00:00:00.000Z","modified":"2026-06-17T05:10:09.490Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-494"],"affected":[{"ranges":[{"version":">= 3.0, < 3.0.4","status":"affected"},{"version":">= 2.0, < 2.2.3","status":"affected"}],"vendor":"sinatra","product":"sinatra","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0","status":"affected","fixed":"3.0.4"}],"ecosystem":"RubyGems","package":"sinatra","purl":"pkg:gem/sinatra","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.2.3"}],"ecosystem":"RubyGems","package":"sinatra","purl":"pkg:gem/sinatra","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.2.3"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.4"}],"vendor":"sinatrarb","product":"sinatra","cpe":"cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq","tags":["advisory","not-applicable","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45442","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-45442.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sinatra/sinatra","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-22T15:40:06.476Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-45442","url":"https://www.cve.org/CVERecord?id=CVE-2022-45442","licence":"CVE Terms of Use","modified":"2025-11-04T16:09:56.861Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2x8x-jmrp-phxw","url":"https://github.com/advisories/GHSA-2x8x-jmrp-phxw","licence":"CC-BY-4.0","modified":"2026-02-04T02:35:49.068Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-45442","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45442","licence":"Public domain","modified":"2026-06-17T05:10:09.490Z"}],"updatedAt":"2026-11-25T22:58:17.098Z","epss":{"score":0.00868,"percentile":0.59814,"date":"2026-12-01T12:00:22.000Z"}}