First published: Mon May 02 2022(Updated: )
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/pcs | <0:0.10.12-6.el8_6.1 | 0:0.10.12-6.el8_6.1 |
redhat/pcs | <0:0.10.2-4.el8_1.2 | 0:0.10.2-4.el8_1.2 |
redhat/pcs | <0:0.10.4-6.el8_2.2 | 0:0.10.4-6.el8_2.2 |
redhat/pcs | <0:0.10.8-1.el8_4.1 | 0:0.10.8-1.el8_4.1 |
redhat/pcs | <0:0.11.1-10.el9_0.1 | 0:0.11.1-10.el9_0.1 |
redhat/rubygem-sinatra | <1:2.2.0-1.el8 | 1:2.2.0-1.el8 |
Sinatrarb Sinatra | <2.2.0 | |
Debian Debian Linux | =10.0 | |
redhat/sinatra | <2.2.0 | 2.2.0 |
Disable the static option which will disable the public_dir option. With this configuration, Sinatra will not serve files from the public directory and therefore files outside of it.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2022-29970 is a vulnerability in the Sinatra web application framework that allows files outside of the public directory to be served when serving static files.
CVE-2022-29970 has a severity level of high (7).
CVE-2022-29970 affects Sinatra by not validating that the expanded path matches the public directory when serving static files.
To fix CVE-2022-29970, update to Sinatra version 2.2.0 or later.
Yes, you can find references for CVE-2022-29970 at the following links: [1] NVD, [2] GitHub - Sinatra, [3] GitHub - Skylight Ruby