Name | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3264-1, DLA-3877-1 |
Debian Bugs | 1025125 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
ruby-sinatra (PTS) | bullseye | 2.0.8.1-2 | vulnerable |
| bullseye (security) | 2.0.8.1-2+deb11u1 | fixed |
| bookworm | 3.0.5-3 | fixed |
| trixie | 3.2.0-1 | fixed |
| sid | 4.1.1-5 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b (v3.0.4)
https://github.com/sinatra/sinatra/commit/1808bcdf3424eab0c659ef2d0e85579aab977a1a (v2.2.3)