Download of code without integrity check in Sinatra - CVE-2022-45442
Published: January 24, 2023
Vulnerability details
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.
Affected software
Ubuntu
openEuler
pcs (Red Hat package)
ruby-sinatra (Ubuntu package)
rubygem-sinatra
rubygem-sinatra-help
How to mitigate CVE-2022-45442
pcs (Red Hat package) - addressed in versions 0.10.2-4.el8_1.3, 0.10.4-6.el8_2.4, 0.10.8-1.el8_4.3, 0.10.12-6.el8_6.3, 0.10.14-5.el8_7.2, 0.11.1-10.el9_0.3, 0.11.3-4.el9_1.2
ruby-sinatra (Ubuntu package) - addressed in versions 1.4.7-3ubuntu0.1~esm2, 1.4.8-1ubuntu0.1~esm2, 2.0.8.1-1ubuntu0.1~esm2, 2.0.8.1-2+deb11u1build0.22.04.1
rubygem-sinatra - addressed in versions 2.0.3-3, 2.0.8.1-3, 2.0.8.1-4
rubygem-sinatra-help - addressed in versions 2.0.3-3, 2.0.8.1-3, 2.0.8.1-4
External References
- 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
Related Security Bulletins
- Remote code execution in Sinatra
- Red Hat Enterprise Linux 8 update for pcs
- Red Hat Enterprise Linux 8.6 Extended Update Support update for pcs
- Red Hat Enterprise Linux 9.0 Extended Update Support update for pcs
- Red Hat Enterprise Linux 8.4 Extended Update Support update for pcs
- Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions update for pcs
- Red Hat Enterprise Linux 8 update for pcs
- Red Hat Enterprise Linux 9 update for pcs
- openEuler 22.03 LTS SP3 update for rubygem-sinatra
- openEuler 22.03 LTS SP4 update for rubygem-sinatra
- openEuler 24.03 LTS update for rubygem-sinatra
- openEuler 22.03 LTS SP1 update for rubygem-sinatra
- openEuler 20.03 LTS SP4 update for rubygem-sinatra
- Ubuntu update for ruby-sinatra