CVE-2022-29970
Sinatrarb Sinatra vulnerability
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
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
- nvd.nist.gov/vuln/detail/CVE-2022-29970
- github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e
- github.com/skylightio/skylight-ruby/pull/294
- lists.debian.org/debian-lts-announce/2022/10/msg00034.html
- github.com/sinatra/sinatra/pull/1683
- github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-29970.yml
- lists.debian.org/debian-lts-announce/2024/09/msg00020.html
- github.com/advisories/GHSA-qp49-3pvw-x4m5
- nvd.nist.gov/vuln/detail/CVE-2022-29970
- cve.org/CVERecord?id=CVE-2022-29970
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.