CVE-2022-45442: Sinatra vulnerable to Reflected File Download attack
Vulnerability summary
CVE-2022-45442 is a high (CVSS 8.8) Download of Code Without Integrity Check vulnerability in debian debian_linux. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 59.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 28-11-2022PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · RubygemsEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.87%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
Increase +0.17 pp
From 0.69% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (blackhat.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- ruby-sinatra< 2.0.5-4+deb10u2 | < 3.0.5-2
- debian_linuxEOL10.0
Redhat2 products
- pcs< 0:0.10.4-6.el8_2.4 | < 0:0.10.12-6.el8_6.3 | < 0:0.10.8-1.el8_4.3 | < 0:0.11.1-10.el9_0.3 | < 0:0.10.14-5.el8_7.2 | < 0:0.10.2-4.el8_1.3 | < 0:0.11.3-4.el9_1.2
- pcs-snmp< 0:0.10.4-6.el8_2.4 | < 0:0.10.12-6.el8_6.3 | < 0:0.10.8-1.el8_4.3 | < 0:0.11.1-10.el9_0.3 | < 0:0.10.14-5.el8_7.2 | < 0:0.10.2-4.el8_1.3 | < 0:0.11.3-4.el9_1.2
Mageia1 product
- ruby-sinatra< 2.0.8.1-1.2.mga8
RubyGems1 product
- sinatra≥ 3.0, < 3.0.4 | ≥ 2.0.0, < 2.2.3
Sinatra1 product
- sinatra≥ 3.0, < 3.0.4 | ≥ 2.0, < 2.2.3
Sinatrarb1 product
- sinatra≥ 2.0.0, < 2.2.3 | ≥ 3.0.0, < 3.0.4
Ubuntu1 product
- ruby-sinatra< 1.4.7-3ubuntu0.1~esm2 | < 1.4.8-1ubuntu0.1~esm2 | < 2.0.8.1-2+deb11u1build0.22.04.1
7 vendors · 9 products
References
33 links- github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363bREPORTWEBPatchThird Party Advisory
Show all 33 references
- github.com/sinatra/sinatraPACKAGE