Remote code execution in Sinatra



Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-45442
CWE-ID CWE-494
Exploitation vector Network
Public exploit N/A
Vulnerable software
Sinatra
Web applications / Remote management & hosting panels

Vendor Sinatra

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Download of code without integrity check

EUVDB-ID: #VU71475

Risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2022-45442

CWE-ID: CWE-494 - Download of Code Without Integrity Check

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system

The vulnerability exists due to software 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. A remote attacker cam compromise the affected system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Sinatra: 2.0.0 rc3 - 3.0.3

CPE2.3 External links

https://github.com/advisories/GHSA-8x94-hmjh-97hq
https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b
https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw
https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf
https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###