High severity · published Nov 28, 2022
CVE-2022-45442
Sinatra is a domain-specific language for creating web applications in Ruby
8.8
CVSS
0.7%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 53% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
10.0 · source: NVD
SI
Sinatra · Sinatrarb
2.0.0 before 2.2.3; 3.0.0 before 3.0.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-45442
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-45442
Not Applicable
https://github.com/advisories/GHSA-8x94-hmjh-97hq
Patch
https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
Third Party Advisory
https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
Mailing List
https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html
Exploit
https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf
lists.debian.org
https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
