NetSight
high7.5

CVE-2023-38337

rswag vulnerable to arbitrary JSON and YAML file read via directory traversal

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
rubygemsrswag< 2.10.12.10.1

Affected products

VendorProductAffected versions
Rswag ProjectRswag
before 2.10.1

Weakness classification

References