{"id":"CVE-2022-45442","state":"PUBLISHED","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.","publishedAt":"2022-11-28T00:00:00.000Z","updatedAt":"2025-11-04T16:09:56.861Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["sinatra sinatra"],"affected":[{"vendor":"sinatra","product":"sinatra","versions":[{"version":">= 3.0, < 3.0.4","status":"affected"},{"version":">= 2.0, < 2.2.3","status":"affected"}]}],"references":["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"],"weaknesses":["CWE-494"],"ingestedAt":"2026-10-29T19:50:51.061Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/45xxx/CVE-2022-45442.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-45442","state":"PUBLISHED","datePublished":"2022-11-28T00:00:00.000Z","dateUpdated":"2025-11-04T16:09:56.861Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2022-11-15T00:00:00.000Z"},"containers":{"cna":{"title":"Sinatra vulnerable to Reflected File Download attack","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"sinatra","product":"sinatra","versions":[{"version":">= 3.0, < 3.0.4","status":"affected"},{"version":">= 2.0, < 2.2.3","status":"affected"}]}],"references":[{"url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw"},{"url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b"},{"url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq"},{"url":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf"},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html","name":"[debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update","tags":["mailing-list"]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-494","type":"CWE","lang":"en","description":"CWE-494: Download of Code Without Integrity Check"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-01-10T00:00:00.000Z"},"source":{"advisory":"GHSA-2x8x-jmrp-phxw","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw","tags":["x_transferred"]},{"url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b","tags":["x_transferred"]},{"url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq","tags":["x_transferred"]},{"url":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html","name":"[debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update","tags":["mailing-list","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-04T16:09:56.861Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-22T15:40:06.476261Z","id":"CVE-2022-45442","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-22T15:59:32.565Z"}}]}}}