{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-45442","id":"CVE-2022-45442","title":"Sinatra vulnerable to Reflected File Download attack","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.","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:31:15.064802965Z","reserved":"2022-11-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["sinatra"],"affectedProducts":[{"vendor":"sinatra","product":"sinatra","defaultStatus":null,"versions":[{"version":">= 3.0, < 3.0.4","status":"affected"},{"version":">= 2.0, < 2.2.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"sinatra","purl":"pkg:gem/sinatra","ranges":[">=3.0 <3.0.4",">=2.0.0 <2.2.3"],"fixed":["3.0.4","2.2.3"],"advisory":"GHSA-2x8x-jmrp-phxw"}],"cwes":["CWE-494"],"aliases":["GHSA-2x8x-jmrp-phxw"],"references":[{"url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq","tags":["x_transferred","Not Applicable","advisory"]},{"url":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45442.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45442","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-45442.yml","tags":["web"]},{"url":"https://github.com/sinatra/sinatra","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00694,"epssPercentile":0.53727,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-45442","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45442","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-45442","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2x8x-jmrp-phxw","ok":true,"note":"GHSA-2x8x-jmrp-phxw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-45442","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}