CVE-2022-45442
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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| sinatra | sinatra | >= 3.0, < 3.0.4, >= 2.0, < 2.2.3 |
| sinatra | sinatra | 3.0, 2.0 |
| RubyGems | sinatra | 3.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
References
- [debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-45442 advisory
- https://github.com/advisories/GHSA-2x8x-jmrp-phxw advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-45442.yml advisory
- https://github.com/sinatra/sinatra url
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html url