CVE-2022-45442
Sinatrarb Sinatra vulnerability
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.
Affected products
Sinatra, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sinatrarb Sinatra runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
- nvd.nist.gov/vuln/detail/CVE-2022-45442
- github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
- github.com/advisories/GHSA-8x94-hmjh-97hq
- www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack
- github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-45442.yml
- lists.debian.org/debian-lts-announce/2023/01/msg00005.html
- lists.debian.org/debian-lts-announce/2024/09/msg00020.html
- nvd.nist.gov/vuln/detail/CVE-2022-45442
- cve.org/CVERecord?id=CVE-2022-45442
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.