CVE-2022-45442 Sinatra vulnerable to Reflected File Download attack
HighCVSS 8.8
EPSS 0.69%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby-sinatra(Debian 12) | < 3.0.5-2 | 3.0.5-2 | Fixed |
| debian/ruby-sinatra(Debian 13) | < 3.0.5-2 | 3.0.5-2 | Fixed |
| debian/ruby-sinatra(Debian 14) | < 3.0.5-2 | 3.0.5-2 | Fixed |
| rubygems sinatra(RubyGems) | = 2.0.0; = 2.0.1; = 2.0.1.rc1; = 2.0.2 +17 more | 2.2.3, 3.0.4 | Fixed |
| sinatrarb sinatra | >= 2.0.0, < 2.2.3; >= 3.0.0, < 3.0.4 | 2.2.3, 3.0.4 | Fixed |
| ubuntu/ruby-sinatra(Ubuntu 22.04) | < 2.0.8.1-2+deb11u1build0.22.04.1; = 2.0.8.1-2 | 2.0.8.1-2+deb11u1build0.22.04.1 | Fixed |
| ubuntu/ruby-sinatra(Ubuntu Pro 16.04) | < 1.4.7-3ubuntu0.1~esm2; = 1.4.6-2; = 1.4.7-3 | 1.4.7-3ubuntu0.1~esm2 | Fixed |
| ubuntu/ruby-sinatra(Ubuntu Pro 18.04) | < 1.4.8-1ubuntu0.1~esm2; = 1.4.7-5; = 1.4.8-1 | 1.4.8-1ubuntu0.1~esm2 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
| sinatra | = >= 2.0, < 2.2.3; = >= 3.0, < 3.0.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems sinatra(RubyGems) | >= 3.0, < 3.0.4 | 3.0.4 |
| rubygems sinatra(RubyGems) | = 3.0.0 | No fix listed |
| rubygems sinatra(RubyGems) | = 3.0.1 | No fix listed |
| rubygems sinatra(RubyGems) | = 3.0.2 | No fix listed |
| rubygems sinatra(RubyGems) | = 3.0.3 | No fix listed |
| rubygems sinatra(RubyGems) | >= 2.0.0, < 2.2.3 | 2.2.3 |
| rubygems sinatra(RubyGems) | = 2.0.0 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.1 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.1.rc1 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.2 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.3 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.4 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.5 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.6 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.7 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.8 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.0.8.1 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.1.0 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.2.0 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.2.1 | No fix listed |
| rubygems sinatra(RubyGems) | = 2.2.2 | No fix listed |
| sinatra | = >= 3.0, < 3.0.4 | No fix listed |
| sinatra | = >= 2.0, < 2.2.3 | No fix listed |
| ubuntu/ruby-sinatra(Ubuntu:22.04) | < 2.0.8.1-2+deb11u1build0.22.04.1 | 2.0.8.1-2+deb11u1build0.22.04.1 |
| sinatrarb sinatra | >= 2.0.0, < 2.2.3 | 2.2.3 |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| sinatrarb sinatra | >= 3.0.0, < 3.0.4 | 3.0.4 |
| debian linux | = 10.0 | No fix listed |
| debian/ruby-sinatra(Debian:12) | < 3.0.5-2 | 3.0.5-2 |
| debian/ruby-sinatra(Debian:14) | < 3.0.5-2 | 3.0.5-2 |
| debian/ruby-sinatra(Debian:13) | < 3.0.5-2 | 3.0.5-2 |
| ubuntu/ruby-sinatra(Ubuntu:Pro:16.04) | < 1.4.7-3ubuntu0.1~esm2 | 1.4.7-3ubuntu0.1~esm2 |
| ubuntu/ruby-sinatra(Ubuntu:Pro:16.04) | = 1.4.6-2 | No fix listed |
| ubuntu/ruby-sinatra(Ubuntu:Pro:16.04) | = 1.4.7-3 | No fix listed |
| ubuntu/ruby-sinatra(Ubuntu:Pro:18.04) | < 1.4.8-1ubuntu0.1~esm2 | 1.4.8-1ubuntu0.1~esm2 |
| ubuntu/ruby-sinatra(Ubuntu:Pro:18.04) | = 1.4.7-5 | No fix listed |
| ubuntu/ruby-sinatra(Ubuntu:Pro:18.04) | = 1.4.8-1 | No fix listed |
| ubuntu/ruby-sinatra(Ubuntu:22.04) | = 2.0.8.1-2 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking not-applicable vendor-advisory
- github.com exploit
- github.com product
- [debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update mailing-list third-party-advisory
- lists.debian.org
- www.blackhat.com exploit issue-tracking third-party-advisory
- Debian Security Tracker CVE-2022-45442 vendor-advisory
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7664-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking