{"api_version":"1","generated_at":"2026-04-23T04:11:54+00:00","cve":"CVE-2022-45442","urls":{"html":"https://cve.report/CVE-2022-45442","api":"https://cve.report/api/cve/CVE-2022-45442.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-45442","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-45442"},"summary":{"title":"CVE-2022-45442","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-11-28 21:15:00","updated_at":"2023-02-01 15:47:00"},"problem_types":["CWE-494"],"metrics":[],"references":[{"url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw","name":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw","refsource":"CONFIRM","tags":[],"title":"Sinatra vulnerable to Reflected File Download attack · Advisory · sinatra/sinatra · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq","name":"https://github.com/advisories/GHSA-8x94-hmjh-97hq","refsource":"MISC","tags":[],"title":"Django 3.2 before 3.2.15 and 4.0 before 4.0.7 vulnerable to Reflected File Download attack  · CVE-2022-36359 · GitHub Advisory Database · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b","name":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b","refsource":"MISC","tags":[],"title":"escape filename in the Content-Disposition header · sinatra/sinatra@ea8fc94 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"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","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3264-1] ruby-sinatra security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf","name":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf","refsource":"MISC","tags":[],"title":"","mime":"application/pdf","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-45442","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45442","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"45442","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"45442","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"sinatrarb","cpe5":"sinatra","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-45442","qid":"160474","title":"Oracle Enterprise Linux Security Update for pcs (ELSA-2023-12137)"},{"cve":"CVE-2022-45442","qid":"160493","title":"Oracle Enterprise Linux Security Update for pcs (ELSA-2023-12150)"},{"cve":"CVE-2022-45442","qid":"181463","title":"Debian Security Update for ruby-sinatra (DLA 3264-1)"},{"cve":"CVE-2022-45442","qid":"182966","title":"Debian Security Update for ruby-sinatra (CVE-2022-45442)"},{"cve":"CVE-2022-45442","qid":"241129","title":"Red Hat Update for pcs (RHSA-2023:0427)"},{"cve":"CVE-2022-45442","qid":"241146","title":"Red Hat Update for pcs (RHSA-2023:0527)"},{"cve":"CVE-2022-45442","qid":"241148","title":"Red Hat Update for pcs (RHSA-2023:0506)"},{"cve":"CVE-2022-45442","qid":"241206","title":"Red Hat Update for pcs (RHSA-2023:0855)"},{"cve":"CVE-2022-45442","qid":"241225","title":"Red Hat Update for pcs (RHSA-2023:0974)"},{"cve":"CVE-2022-45442","qid":"241612","title":"Red Hat Update for pcs (RHSA-2023:0393)"},{"cve":"CVE-2022-45442","qid":"241659","title":"Red Hat Update for pcs (RHSA-2023:0857)"},{"cve":"CVE-2022-45442","qid":"940933","title":"AlmaLinux Security Update for pcs (ALSA-2023:0855)"},{"cve":"CVE-2022-45442","qid":"940951","title":"AlmaLinux Security Update for pcs (ALSA-2023:0974)"},{"cve":"CVE-2022-45442","qid":"960662","title":"Rocky Linux Security Update for pcs (RLSA-2023:0855)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-45442","STATE":"PUBLIC","TITLE":"Sinatra vulnerable to Reflected File Download attack"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"sinatra","version":{"version_data":[{"version_value":">= 3.0, < 3.0.4"},{"version_value":">= 2.0, < 2.2.3"}]}}]},"vendor_name":"sinatra"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-494: Download of Code Without Integrity Check"}]}]},"references":{"reference_data":[{"name":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw","refsource":"CONFIRM","url":"https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw"},{"name":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b","refsource":"MISC","url":"https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b"},{"name":"https://github.com/advisories/GHSA-8x94-hmjh-97hq","refsource":"MISC","url":"https://github.com/advisories/GHSA-8x94-hmjh-97hq"},{"name":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf","refsource":"MISC","url":"https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html"}]},"source":{"advisory":"GHSA-2x8x-jmrp-phxw","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-11-28 21:15:00","lastModifiedDate":"2023-02-01 15:47:00","problem_types":["CWE-494"],"metrics":{"baseMetricV3":{"cvssV3":{"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"},"exploitabilityScore":2.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.2.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}