hoch7.5
CVE-2023-38337
rswag vulnerable to arbitrary JSON and YAML file read via directory traversal
Auswirkung
rswag before 2.10.1 allows remote attackers to read arbitrary JSON and YAML files via directory traversal, because rswag-api can expose a file that is not the OpenAPI (or Swagger) specification file of a project.
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 | rswag | < 2.10.1 | 2.10.1 |
Betroffene Produkte · Rswag Project
| Produkt | Betroffene Versionen |
|---|---|
| Rswag | vor 2.10.1 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/rswag/rswag/compare/2.9.0...2.10.1
- https://github.com/rswag/rswag/issues/653
- https://github.com/advisories/GHSA-vc79-65pr-q82v
- https://nvd.nist.gov/vuln/detail/CVE-2023-38337
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rswag/CVE-2023-38337.yml