hoch7.5
CVE-2022-29970
sinatra does not validate expanded path matches
Auswirkung
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rubygems | sinatra | < 2.2.0 | 2.2.0 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Debian | Debian Linux | Version 10.0 |
| Sinatrarb | Sinatra | vor 2.2.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e
- https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html
- https://github.com/advisories/GHSA-qp49-3pvw-x4m5
- https://nvd.nist.gov/vuln/detail/CVE-2022-29970
- https://github.com/skylightio/skylight-ruby/pull/294
- https://github.com/sinatra/sinatra/pull/1683
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-29970.yml