VDB

CVE-2022-45442

CVE-2022-45442 PUBLISHED CVSS 8.8 HIGH

Sinatra vulnerable to Reflected File Download attack

Reported by github_m · Published November 28, 2022

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.

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
sinatrasinatra>= 3.0, < 3.0.4, >= 2.0, < 2.2.3
sinatrasinatra3.0, 2.0
RubyGemssinatra3.0, 2.0.0

Timeline

  • Nov 28, 2022 CVE Published
  • Nov 29, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 4, 2025 PoC Published
  • Mar 17, 2026 Security Advisory (12 in total, the first dated here)
  • Jun 12, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (11 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-45442
vulnetix vdb fixes CVE-2022-45442

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-45442/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›